{"id":"CVE-2020-36442","aliases":["CVE-2020-36442","GHSA-m7w4-8wp8-m2xq","RUSTSEC-2020-0122"],"related":[],"kind":"vulnerability","state":"published","title":"Data races in beef","summary":"An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.","source":"cvelist"},{"lang":"en","text":"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>`.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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>`.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate beef versiones anteriores a 0.5.0 para Rust. La función beef::Cow no presente un límite de sincronización en su rasgo Send","source":"nvd"}],"published":"2020-10-28T12:00:00.000Z","modified":"2026-06-17T03:15:30.067Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-119","CWE-362"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.5.0"}],"ecosystem":"crates.io","package":"beef","purl":"pkg:cargo/beef","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.5.0"}],"ecosystem":"crates.io","package":"beef","purl":"pkg:cargo/beef","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.5.0"}],"vendor":"beef_project","product":"beef","cpe":"cpe:2.3:a:beef_project:beef:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0122.html","tags":["advisory","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/beef/RUSTSEC-2020-0122.md","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36442","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/maciejhirsz/beef/issues/37","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/maciejhirsz/beef","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/beef","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36442","url":"https://www.cve.org/CVERecord?id=CVE-2020-36442","licence":"CVE Terms of Use","modified":"2024-08-04T17:30:08.279Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m7w4-8wp8-m2xq","url":"https://github.com/advisories/GHSA-m7w4-8wp8-m2xq","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:45.086Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0122","url":"https://rustsec.org/advisories/RUSTSEC-2020-0122.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:45.086Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36442","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36442","licence":"Public domain","modified":"2026-06-17T03:15:30.067Z"}],"updatedAt":"2026-11-25T22:57:58.285Z","epss":{"score":0.00766,"percentile":0.56679,"date":"2026-12-01T12:00:22.000Z"}}