{"id":"CVE-2020-36442","aliases":["EUVD-2021-1792","GHSA-m7w4-8wp8-m2xq","RUSTSEC-2020-0122"],"status":"published","title":"Data races in beef","description":"An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.","severity":{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.00766,"percentile":0.55783,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119","CWE-362"],"published":"2020-10-28T12:00:00Z","modified":"2026-06-17T03:15:30Z","fixes":[{"ecosystem":"crates.io","package":"beef","fixed_in":["0.5.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"beef","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"beef","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.5.0"}]}]},{"source":"osv","ecosystem":"crates.io","package":"beef","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.5.0"}]}]}],"products":[{"vendor":"beef_project","product":"beef"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0122.html","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/beef/RUSTSEC-2020-0122.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36442","tags":["advisory"]},{"url":"https://github.com/maciejhirsz/beef/issues/37","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-m7w4-8wp8-m2xq"},{"url":"https://github.com/maciejhirsz/beef","tags":["package"]},{"url":"https://crates.io/crates/beef","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36442","description":"An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.","status":"published","published":"2021-08-08T05:17:36Z","modified":"2024-08-04T17:30:08.279Z","updated_at":"2026-11-02T14:35:55.128961Z"}],"euvd":[{"id":"EUVD-2021-1792","description":"An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.","status":"published","published":"2021-08-08T05:17:36Z","modified":"2024-08-04T17:30:08Z","updated_at":"2026-11-03T03:07:03.010139Z"}],"ghsa":[{"id":"GHSA-m7w4-8wp8-m2xq","title":"Data races in beef","description":"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 \u0026\u0026 !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","status":"published","published":"2021-08-25T20:59:08Z","modified":"2023-01-27T05:00:53Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119","CWE-362"],"updated_at":"2026-11-02T14:36:15.574072Z"}],"nvd":[{"id":"CVE-2020-36442","description":"An issue was discovered in the beef crate before 0.5.0 for Rust. beef::Cow has no Sync bound on its Send trait.","status":"published","published":"2021-08-08T06:15:07.203Z","modified":"2026-06-17T03:15:30.067Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:06:44.292752Z"}],"osv":[{"id":"GHSA-m7w4-8wp8-m2xq","title":"Data races in beef","description":"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 \u0026\u0026 !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","status":"published","published":"2021-08-25T20:59:08Z","modified":"2023-11-08T04:03:45.086282Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119","CWE-362"],"updated_at":"2026-11-02T15:46:51.463834Z"},{"id":"RUSTSEC-2020-0122","title":"beef::Cow lacks a Sync bound on its Send trait allowing for data races","description":"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 \u0026\u0026 !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`.","status":"published","published":"2020-10-28T12:00:00Z","modified":"2023-11-08T04:03:45.086282Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
