{"id":"RUSTSEC-2020-0062","summary":"Improper `Sync` implementation on `FuturesUnordered` in futures-utils can cause data corruption","details":"Affected versions of the crate had an unsound `Sync` implementation on the `FuturesUnordered` structure, which used a `Cell` for\ninterior mutability without any code to handle synchronized access to the underlying task list's length and head safely.\n\nThis could of lead to data corruption since two threads modifying the list at once could see incorrect values due to the lack\nof access synchronization.\n\nThe issue was fixed by adding access synchronization code around insertion of tasks into the list.","aliases":["CVE-2020-35908","GHSA-5r9g-j7jj-hw6c"],"modified":"2023-11-01T04:53:07.793384Z","published":"2020-01-24T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/futures-util"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0062.html"},{"type":"REPORT","url":"https://github.com/rust-lang/futures-rs/issues/2050"}],"affected":[{"package":{"name":"futures-util","ecosystem":"crates.io","purl":"pkg:cargo/futures-util"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.3.0"},{"fixed":"0.3.2"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"os":[],"functions":["futures_util::stream::FuturesUnordered"]}},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0062.json","categories":["memory-corruption","thread-safety"],"cvss":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","informational":null}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}