CVE-2021-45704: metrics-util - Race Condition
- Cve: CVE-2021-45704
- Name: metrics-util - Race Condition
- 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.
- Impact: Potential data race and memory corruption, leading to application crashes or undefined behavior.
- Remediation: Update to version 0.7.0 or later where the issue is fixed.
- Vulnerability type: race_condition
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.1
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00766
- Epss percentile: 0.56205
- Assignee: [email protected]
- Published at: 2021-12-27T00:15:09Z
- Age in days: 1793
- Modified at: 2026-06-17T04:13:59Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-45704
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization |
References
| Url | Source | Tags |
|---|---|---|
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/metrics-util/RUSTSEC-2021-0113.md | nvd | Third Party Advisory |
| https://rustsec.org/advisories/RUSTSEC-2021-0113.html | nvd | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| metrics-util_project:metrics-util | < 0.7.0 | no | nvd | /v1/products/metrics-util_project/metrics-util |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| metrics-rs/metrics | commit, issues, package | yes | /v1/repositories/metrics-rs/metrics |
Index
- Repositories: 2
- Repositories high signal: 1
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts