{"id":"GHSA-v5m7-53cv-f3hx","revision":"ee46082d23f9490899773f03009bd617","records":[{"revision":"ee46082d23f9490899773f03009bd617","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-v5m7-53cv-f3hx","aliases":["CVE-2020-15254","CVE-2020-35904","GHSA-m8h8-v6jh-c762","RUSTSEC-2020-0052"],"title":"crossbeam-channel Undefined Behavior before v0.4.4","description":"### Impact\n\nThe affected version of this crate's the `bounded` channel incorrectly assumes that `Vec::from_iter` has allocated capacity that same as the number of iterator elements. `Vec::from_iter` does not actually guarantee that and may allocate extra memory. The destructor of the `bounded` channel reconstructs `Vec` from the raw pointer based on the incorrect assumes described above. This is unsound and causing deallocation with the incorrect capacity when `Vec::from_iter` has allocated different sizes with the number of iterator elements.\n\n### Patches\n\nThis has been fixed in crossbeam-channel 0.4.4.\n\nWe recommend users to upgrade to 0.4.4.\n\n### References\n\nSee https://github.com/crossbeam-rs/crossbeam/pull/533, https://github.com/crossbeam-rs/crossbeam/issues/539, and https://github.com/RustSec/advisory-db/pull/425 for more details.\n\n### License\n\nThis advisory is in the public domain.","state":0,"publishedAt":"2021-08-25T21:01:13+00:00","modifiedAt":"2026-07-08T06:27:45.6796511+00:00","affected":[{"ecosystem":"crates.io","name":"crossbeam-channel","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.4.3"},{"kind":"fixed","version":"0.4.4"}]}],"versions":["0.4.3"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx","https://nvd.nist.gov/vuln/detail/CVE-2020-15254","https://github.com/crossbeam-rs/crossbeam/issues/539","https://github.com/RustSec/advisory-db/pull/425","https://github.com/crossbeam-rs/crossbeam/pull/533","https://github.com/crossbeam-rs/crossbeam","https://rustsec.org/advisories/RUSTSEC-2020-0052.html"],"sourceUrl":"https://github.com/advisories/GHSA-v5m7-53cv-f3hx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-v5m7-53cv-f3hx","identifiers":["GHSA-v5m7-53cv-f3hx","CVE-2020-15254","CVE-2020-35904","GHSA-m8h8-v6jh-c762","RUSTSEC-2020-0052"]},"retained":false,"historicalAffected":[]}],"coverage":[]}