1 line
1.5 KiB
JSON
1 line
1.5 KiB
JSON
{"schema_version":"1.7.3","id":"RUSTSEC-2020-0122","published":"2020-10-28T12:00:00Z","modified":"2023-11-08T04:03:45.086282Z","aliases":["CVE-2020-36442","GHSA-m7w4-8wp8-m2xq"],"summary":"beef::Cow lacks a Sync bound on its Send trait allowing for data races","details":"Affected versions of this crate did not have a `T: Sync` bound in the `Send` impl for `Cow<'_, T, U>`. This allows users to create data races by making `Cow` contain types that are (Send && !Sync) like `Cell<_>` or `RefCell<_>`.\n\nSuch data races can lead to memory corruption.\n\nThe flaw was corrected in commit d1c7658 by adding trait bounds `T: Sync` and `T::Owned: Send` to the `Send` impl for `Cow<'_, T, U>`.","affected":[{"package":{"name":"beef","ecosystem":"crates.io","purl":"pkg:cargo/beef"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.5.0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"categories":["memory-corruption","thread-safety"],"cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0122.json"}}],"references":[{"type":"PACKAGE","url":"https://crates.io/crates/beef"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0122.html"},{"type":"REPORT","url":"https://github.com/maciejhirsz/beef/issues/37"}],"database_specific":{"license":"CC0-1.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"}]} |