{"id":"GHSA-jwph-qp5h-f9wj","summary":"Data races in bunch","details":"An issue was discovered in the bunch crate through 2020-11-12 for Rust. \nAffected versions of this crate unconditionally implements `Send`/`Sync` for `Bunch\u003cT\u003e`.\nThis allows users to insert `T: !Sync` to `Bunch\u003cT\u003e`. It is possible to create a data race to a `T: !Sync` by invoking the `Bunch::get()` API (which returns `&T`) from multiple threads. It is also possible to send `T: !Send` to other threads by inserting `T` inside `Bunch\u003cT\u003e` and sending `Bunch\u003cT\u003e` to another thread, allowing to create a data race by inserting types like `T = Rc\u003c_\u003e`.\n\nSuch data races can lead to memory corruption.","aliases":["CVE-2020-36450","RUSTSEC-2020-0130"],"modified":"2023-11-08T04:03:45.582098Z","published":"2021-08-25T20:59:18Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-08-09T21:34:27Z","nvd_published_at":"2021-08-08T06:15:00Z","cwe_ids":["CWE-362","CWE-77"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36450"},{"type":"WEB","url":"https://github.com/krl/bunch/issues/1"},{"type":"PACKAGE","url":"https://github.com/krl/bunch"},{"type":"WEB","url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/bunch/RUSTSEC-2020-0130.md"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2020-0130.html"}],"affected":[{"package":{"name":"bunch","ecosystem":"crates.io","purl":"pkg:cargo/bunch"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"0.1.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-jwph-qp5h-f9wj/GHSA-jwph-qp5h-f9wj.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"}]}