{"id":"CVE-2020-36442","aliases":["RUSTSEC-2020-0122"],"url":"https://o3.security/vulnerability/CVE-2020-36442","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<'_, 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>`.\n","published":"2021-08-25T20:59:08Z","modified":"2023-11-08T04:03:45.086282Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"beef","fixedVersion":"0.5.0"}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:03:45.086282Z"}}