CVE-2021-45704
HIGH 8.1CVSS 3.1AtomicBucket<T> unconditionally implements Send/Sync
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.
- Published
- 27 Dec 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-362CWE-787
- Also known as
- GHSA-3hxh-7jxm-59x4GHSA-cwvc-87xq-pc5mRUSTSEC-2021-0113
- Sources
- NVDJSONOSV GHSA-3hxh-7jxm-59x4JSONOSV GHSA-cwvc-87xq-pc5mJSONOSV RUSTSEC-2021-0113JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | metrics-util_project | metrics-utilcpe:2.3:a:metrics-util_project:metrics-util:*:*:*:*:*:rust:*:* |
< 0.7.0 | 0.7.0 |
| OSV | crates.io | metrics-util | < 0.7.0 | 0.7.0 |
| OSV | crates.io | metrics-util | >= 0.0.0-0, < 0.7.0 | 0.7.0 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/metrics-util/RUSTSEC-2021-0113.md · Third Party Advisory, WEB
- https://rustsec.org/advisories/RUSTSEC-2021-0113.html · Third Party Advisory, WEB, ADVISORY
- https://github.com/metrics-rs/metrics/issues/190 · WEB, REPORT
- https://github.com/metrics-rs/metrics · PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2021-45704 · ADVISORY
- https://github.com/metrics-rs/metrics/commit/8e6daab · WEB
- https://crates.io/crates/metrics-util · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Dec 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2022)