{"id":"GHSA-9hpw-r23r-xgm5","aliases":["GHSA-9hpw-r23r-xgm5","RUSTSEC-2022-0006"],"related":[],"kind":"vulnerability","state":"published","title":"Data race in `Iter` and `IterMut`","summary":"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\nwhen iterating over a `ThreadLocal`'s values.\n\nCrates using `Iter::next`, or `IterMut::next` are affected by this issue.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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\nwhen iterating over a `ThreadLocal`'s values.\n\nCrates using `Iter::next`, or `IterMut::next` are affected by this issue.","format":"markdown","source":"ghsa"}],"published":"2022-01-23T12:00:00.000Z","modified":"2023-11-08T04:17:57.540Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.4"}],"ecosystem":"crates.io","package":"thread_local","purl":"pkg:cargo/thread_local","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"1.1.4"}],"ecosystem":"crates.io","package":"thread_local","purl":"pkg:cargo/thread_local","source":"rustsec"}],"references":[{"url":"https://github.com/Amanieu/thread_local-rs/issues/33","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/Amanieu/thread_local-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0006.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/thread_local","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9hpw-r23r-xgm5","url":"https://github.com/advisories/GHSA-9hpw-r23r-xgm5","licence":"CC-BY-4.0","modified":"2023-11-08T04:17:57.540Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0006","url":"https://rustsec.org/advisories/RUSTSEC-2022-0006.html","licence":"CC0-1.0","modified":"2023-11-08T04:17:57.540Z"}],"updatedAt":"2026-11-25T22:56:43.090Z"}