{"id":"RUSTSEC-2020-0128","summary":"Cache\u003cK\u003e: Send/Sync impls needs trait bounds on `K`","details":"Affected 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.","aliases":["CVE-2020-36448","GHSA-g78p-g85h-q6ww"],"modified":"2023-11-08T04:03:45.459873Z","published":"2020-11-24T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/cache"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0128.html"},{"type":"REPORT","url":"https://github.com/krl/cache/issues/1"}],"affected":[{"package":{"name":"cache","ecosystem":"crates.io","purl":"pkg:cargo/cache"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","categories":["memory-corruption","thread-safety"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0128.json","informational":null}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}