{"schema_version":"1.9.0","id":"GHSA-jwph-qp5h-f9wj","published":"2021-08-25T20:59:18Z","modified":"2023-11-08T04:03:45.582098Z","aliases":["CVE-2020-36450","RUSTSEC-2020-0130"],"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<T>`.\nThis allows users to insert `T: !Sync` to `Bunch<T>`. 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<T>` and sending `Bunch<T>` to another thread, allowing to create a data race by inserting types like `T = Rc<_>`.\n\nSuch data races can lead to memory corruption.","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"}}],"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"}],"database_specific":{"cwe_ids":["CWE-362","CWE-77"],"github_reviewed":true,"github_reviewed_at":"2021-08-09T21:34:27Z","nvd_published_at":"2021-08-08T06:15:00Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}