{"id":"CVE-2020-36436","aliases":["RUSTSEC-2020-0116"],"url":"https://o3.security/vulnerability/CVE-2020-36436","summary":"Data races in unicycle","details":"Affected versions of this crate unconditionally implemented `Send` & `Sync` for types `PinSlab<T>` & `Unordered<T, S>`. This allows sending non-Send types to other threads and concurrently accessing non-Sync types from multiple threads.\n\nThis can result in a data race & memory corruption when types that provide internal mutability without synchronization are contained within `PinSlab<T>` or `Unordered<T, S>` and accessed concurrently from multiple threads.\n\nThe flaw was corrected in commits 92f40b4 & 6a6c367 by adding trait bound `T: Send` to `Send` impls for `PinSlab<T>` & `Unordered<T, S>` and adding `T: Sync` to `Sync` impls for `PinSlab<T>` & `Unordered<T, S>`.","published":"2021-08-25T20:58:17Z","modified":"2023-11-08T04:03:44.721625Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.00766,"percentile":0.52333,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"unicycle","fixedVersion":"0.7.1"}],"fix":{"url":"https://github.com/udoprog/unicycle/commit/6a6c367a0c25f86f998fa315ea90c328f685b194","label":"udoprog/unicycle@6a6c367"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36436"},{"type":"WEB","url":"https://github.com/udoprog/unicycle/issues/8"},{"type":"WEB","url":"https://github.com/udoprog/unicycle/commit/6a6c367a0c25f86f998fa315ea90c328f685b194"},{"type":"WEB","url":"https://github.com/udoprog/unicycle/commit/92f40b4a2c671553dfa96feacff0265206c44ce5"},{"type":"PACKAGE","url":"https://github.com/udoprog/unicycle"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/unicycle/RUSTSEC-2020-0116.md"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0116.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:03:44.721625Z"}}