Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. thread_local
  4. ›
  5. GHSA-9hpw-r23r-xgm5

GHSA-9hpw-r23r-xgm5: Data race in `Iter` and `IterMut`

June 17, 2022

In the affected version of this crate, {Iter, IterMut}::next used a weaker memory ordering when loading values than what was required, exposing a potential data race when iterating over a ThreadLocal’s values.

Crates using Iter::next, or IterMut::next are affected by this issue.

References

  • github.com/Amanieu/thread_local-rs
  • github.com/Amanieu/thread_local-rs/issues/33
  • github.com/advisories/GHSA-9hpw-r23r-xgm5
  • rustsec.org/advisories/RUSTSEC-2022-0006.html

Code Behaviors & Features

Detect and mitigate GHSA-9hpw-r23r-xgm5 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 1.1.4

Fixed versions

  • 1.1.4

Solution

Upgrade to version 1.1.4 or above.

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

Source file

cargo/thread_local/GHSA-9hpw-r23r-xgm5.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 14 May 2025 12:15:25 +0000.