CVE-2021-45704 – metrics-util
Package
Manager: cargo
Name: metrics-util
Vulnerable Version: >=0 <0.7.0
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00336 pctl0.55788
Details
Out-of-bounds Write and Race Condition in metrics-util In the affected versions of the crate, AtomicBucket<T> 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<T> (which is a data type contained inside AtomicBucket<T>).
Metadata
Created: 2022-01-06T22:08:43Z
Modified: 2023-06-13T18:14:16Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-cwvc-87xq-pc5m/GHSA-cwvc-87xq-pc5m.json
CWE IDs: ["CWE-362", "CWE-787"]
Alternative ID: GHSA-cwvc-87xq-pc5m
Finding: F124
Auto approve: 1