CVE-2023-6180 Resource exhaustion via memory leak in tokio-boring
An attacker can cause resource exhaustion and denial of service by triggering a memory leak in the tokio-boring TLS library during connection handling.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-6180?
CVE-2023-6180 is a medium-severity denial of service vulnerability in Cloudflare tokio-boring, published on 5 Dec 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The tokio-boring library in version 4.0.0 is affected by a memory leak issue that can lead to excessive resource consumption and potential DoS by resource exhaustion. The set_ex_data function used by the library did not deallocate memory used by pre-existing data in memory each time after completing a TLS connection causing the program to consume more resources with each new connection.
Which versions are affected by CVE-2023-6180?
2 open source packages ship an affected version, including tokio-boring. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
tokio-boring crates.io | From 4.0.0 | 4.1.0 |
tokio-boring crates.io | From 4.0.0 | 4.1.0 |
Products include Cloudflare Boring.
How do I fix CVE-2023-6180?
Upgrade tokio-boring to 4.1.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-6180 being exploited?
There is no known exploitation of CVE-2023-6180 in the wild and no public exploit code.
Sources
Also known as GHSA-pjrj-h4fg-6gm4.