{ "schema_version": "1.4.0", "id": "GHSA-m7w4-8wp8-m2xq", "modified": "2021-08-24T18:35:48Z", "published": "2021-08-25T20:59:08Z", "aliases": [ "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", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H" } ], "affected": [ { "package": { "ecosystem": "crates.io", "name": "beef" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "0.5.0" } ] } ] } ], "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" } ], "database_specific": { "cwe_ids": [ "CWE-119", "CWE-362" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2021-08-09T21:50:28Z", "nvd_published_at": "2021-08-08T06:15:00Z" } }