1 line
1.7 KiB
JSON
1 line
1.7 KiB
JSON
{"schema_version":"1.7.3","id":"RUSTSEC-2020-0094","published":"2020-12-01T12:00:00Z","modified":"2023-11-08T04:03:41.295805Z","aliases":["CVE-2020-36203","GHSA-39xg-8p43-h76x"],"summary":"Unsound: can make `ARefss` contain a !Send, !Sync object.","details":"`ARefss<'a, V>` is a type that is assumed to contain objects that are `Send + Sync`.\n\nIn the affected versions of this crate,\n`Send`/`Sync` traits are unconditionally implemented for `ARefss<'a, V>`.\n\nBy using the `ARefss::map()` API, we can insert a `!Send` or `!Sync` object into `ARefss<'a, V>`. After that, it is possible to create a data race to the inner object of `ARefss<'a, V>`, which can lead to undefined behavior & memory corruption.\n\nThe flaw was corrected in commit 6dd7ca0 (https://github.com/diwic/reffers-rs/commit/6dd7ca0d50f2464df708975cdafcfaeeb6d41c66) by adding trait bound `V: Send + Sync` to `ARefss::map()` API.","affected":[{"package":{"name":"reffers","ecosystem":"crates.io","purl":"pkg:cargo/reffers"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.6.1"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"categories":["memory-corruption","thread-safety"],"cvss":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","informational":"unsound","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0094.json"}}],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/reffers"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0094.html"},{"type":"REPORT","url":"https://github.com/diwic/reffers-rs/issues/7"}],"database_specific":{"license":"CC0-1.0"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"}]} |