Live threats

All CVEs / Metrics-util Project

CVE-2021-45704Metrics-util Project Metrics-util

High 8.1 No auth needed

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
Weakness (CWE)
CWE-362, CWE-787
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Metrics-util.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
metrics-util_projectmetrics-util< 0.7.0

Official sources

References

Links published by the sources. Open them with care.