{"id":"RUSTSEC-2020-0122","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\u003c'_, T, U\u003e`. This allows users to create data races by making `Cow` contain types that are (Send && !Sync) like `Cell\u003c_\u003e` or `RefCell\u003c_\u003e`.\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\u003c'_, T, U\u003e`.","aliases":["CVE-2020-36442","GHSA-m7w4-8wp8-m2xq"],"modified":"2023-11-08T04:03:45.086282Z","published":"2020-10-28T12:00:00Z","database_specific":{"license":"CC0-1.0"},"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"}],"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":{"affects":{"functions":[],"os":[],"arch":[]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0122.json","cvss":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","informational":null,"categories":["memory-corruption","thread-safety"]}}],"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"}]}