Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. metrics-util
  4. ›
  5. GHSA-3hxh-7jxm-59x4

GHSA-3hxh-7jxm-59x4: AtomicBucket<T> unconditionally implements Send/Sync

June 17, 2022

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>).

References

  • github.com/advisories/GHSA-3hxh-7jxm-59x4
  • github.com/metrics-rs/metrics
  • github.com/metrics-rs/metrics/issues/190
  • rustsec.org/advisories/RUSTSEC-2021-0113.html

Code Behaviors & Features

Detect and mitigate GHSA-3hxh-7jxm-59x4 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.7.0

Fixed versions

  • 0.7.0

Solution

Upgrade to version 0.7.0 or above.

Source file

cargo/metrics-util/GHSA-3hxh-7jxm-59x4.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.