Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1jd3ZjLTg3eHEtcGM1bc0fiw
Out-of-bounds Write and Race Condition in metrics-util
In the affected versions of the crate, AtomicBucket unconditionally implements Send/Sync traits. Therefore, users can create a data race to the inner T: !Sync by using the AtomicBucket::data_with() API. Such data races can potentially cause memory corruption or other undefined behavior.
The flaw was fixed in commit 8e6daab by adding appropriate Send/Sync bounds to the Send/Sync impl of struct Block (which is a data type contained inside AtomicBucket).
Permalink: https://github.com/advisories/GHSA-cwvc-87xq-pc5mJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jd3ZjLTg3eHEtcGM1bc0fiw
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: 11 months ago
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
Identifiers: GHSA-cwvc-87xq-pc5m, CVE-2021-45704
References:
- https://nvd.nist.gov/vuln/detail/CVE-2021-45704
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/metrics-util/RUSTSEC-2021-0113.md
- https://rustsec.org/advisories/RUSTSEC-2021-0113.html
- https://github.com/metrics-rs/metrics/issues/190
- https://github.com/metrics-rs/metrics/commit/8e6daab
- https://github.com/advisories/GHSA-cwvc-87xq-pc5m
Blast Radius: 24.2
Affected Packages
cargo:metrics-util
Dependent packages: 36Dependent repositories: 978
Downloads: 8,427,359 total
Affected Version Ranges: < 0.7.0
Fixed in: 0.7.0
All affected versions: 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.2, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.6.1, 0.6.2
All unaffected versions: 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.12.0, 0.12.1, 0.13.0, 0.14.0, 0.15.0, 0.15.1, 0.16.0, 0.16.2, 0.16.3