All CVEs / Metrics-util Project
CVE-2021-45704Metrics-util Project Metrics-util
High 8.1 No auth needed
Follow: this CVE · Metrics-util Project · Metrics-util Project Metrics-util We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 3.1
- 8.1
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 52
- Auth required
- No
- Published
- Dec 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Metrics-util.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | metrics-util |
< 0.7.0 |
0.7.0 |
cargo update -p metrics-util --precise 0.7.0 |
| crates.io | metrics-util |
< 0.7.0 |
0.7.0 |
cargo update -p metrics-util --precise 0.7.0 |
| crates.io | metrics-util |
≥ 0.0.0-0 < 0.7.0 |
0.7.0 |
cargo update -p metrics-util --precise 0.7.0 |
Per OSV / GitHub Advisories (GHSA-3hxh-7jxm-59x4, GHSA-cwvc-87xq-pc5m, RUSTSEC-2021-0113). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| metrics-util_project | metrics-util | < 0.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Third Party Advisory