CVE-2021-45704 AtomicBucket<T> unconditionally implements Send/Sync
A data race in the metrics-util crate allows memory corruption, potentially leading to code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-45704?
CVE-2021-45704 is a high-severity vulnerability in n/a, published on 26 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the metrics-util crate before 0.7.0 for Rust. There is a data race and memory corruption because AtomicBucket<T> unconditionally implements the Send and Sync traits.
Which versions are affected by CVE-2021-45704?
5 open source packages ship an affected version, including metrics-util. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
metrics-util crates.io | All versions | 0.7.0 |
metrics-util crates.io | All versions | 0.7.0 |
metrics-util crates.io | All versions | 0.7.0 |
metrics-util crates.io | All versions | 0.7.0 |
metrics-util crates.io | From 0.0.0-0 | 0.7.0 |
Products include Metrics-Util Project Metrics-Util.
How do I fix CVE-2021-45704?
Upgrade metrics-util to 0.7.0 or later.
Is CVE-2021-45704 being exploited?
There is no known exploitation of CVE-2021-45704 in the wild and no public exploit code.
Sources
Also known as GHSA-3hxh-7jxm-59x4, GHSA-cwvc-87xq-pc5m, RUSTSEC-2021-0113.