{"id":"GHSA-g78p-g85h-q6ww","summary":"Data races in cache","details":"An issue was discovered in the cache crate through 2020-11-24 for Rust. \nAffected versions of this crate unconditionally implement Send/Sync for `Cache\u003cK\u003e`.\nThis allows users to insert `K` that is not Send or not Sync.\n\nThis allows users to create data races by using non-Send types like `Arc\u003cCell\u003cT\u003e\u003e` or `Rc\u003cT\u003e` as `K` in `Cache\u003cK\u003e`. It is also possible to create data races by using types like `Cell\u003cT\u003e` or `RefCell\u003cT\u003e` (types that are `Send` but not `Sync`).\nSuch data races can lead to memory corruption.\n","aliases":["CVE-2020-36448","RUSTSEC-2020-0128"],"modified":"2023-11-08T04:03:45.459873Z","published":"2021-08-25T20:57:12Z","database_specific":{"github_reviewed_at":"2021-08-18T20:30:56Z","nvd_published_at":"2021-08-08T06:15:00Z","cwe_ids":["CWE-362","CWE-77"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36448"},{"type":"WEB","url":"https://github.com/krl/cache/issues/1"},{"type":"PACKAGE","url":"https://github.com/krl/cache"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0128.html"}],"affected":[{"package":{"name":"cache","ecosystem":"crates.io","purl":"pkg:cargo/cache"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.2.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-g78p-g85h-q6ww/GHSA-g78p-g85h-q6ww.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}