{"id":"GHSA-m7w4-8wp8-m2xq","summary":"Data races in beef","details":"An issue was discovered in the beef crate before 0.5.0 for Rust. \nAffected 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`.\n","aliases":["CVE-2020-36442","RUSTSEC-2020-0122"],"modified":"2023-11-08T04:03:45.086282Z","published":"2021-08-25T20:59:08Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-09T21:50:28Z","nvd_published_at":"2021-08-08T06:15:00Z","cwe_ids":["CWE-119","CWE-362"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36442"},{"type":"WEB","url":"https://github.com/maciejhirsz/beef/issues/37"},{"type":"PACKAGE","url":"https://github.com/maciejhirsz/beef"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/beef/RUSTSEC-2020-0122.md"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0122.html"}],"affected":[{"package":{"name":"beef","ecosystem":"crates.io","purl":"pkg:cargo/beef"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-m7w4-8wp8-m2xq/GHSA-m7w4-8wp8-m2xq.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"}]}