{"cve":"CVE-2020-15254","nvd":{"published":"2020-10-16T17:15:12.057","modified":"2026-06-17T02:56:22.077","status":"Modified","description":"Crossbeam is a set of tools for concurrent programming. In crossbeam-channel before version 0.4.4, 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. This has been fixed in crossbeam-channel 0.4.4.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-401","CWE-119"],"references":["https://github.com/RustSec/advisory-db/pull/425","https://github.com/crossbeam-rs/crossbeam/issues/539","https://github.com/crossbeam-rs/crossbeam/pull/533","https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx","https://github.com/RustSec/advisory-db/pull/425"],"products":["crossbeam_project:crossbeam"],"source":"nvd","synced_at":"2026-10-19T21:09:53.489947993+00:00"},"epss":{"cve":"CVE-2020-15254","score":0.02701,"percentile":0.85937,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-m8h8-v6jh-c762","url":"https://osv.dev/vulnerability/GHSA-m8h8-v6jh-c762","summary":"Incorrect buffer size in crossbeam-channel","modified":"2023-11-08T04:02:35.713139Z","packages":[{"ecosystem":"crates.io","name":"crossbeam-channel","purl":"pkg:cargo/crossbeam-channel","ranges":[">=0.4.3 <0.4.4"],"fixed":["0.4.4"]}]},{"id":"GHSA-v5m7-53cv-f3hx","url":"https://osv.dev/vulnerability/GHSA-v5m7-53cv-f3hx","summary":"crossbeam-channel Undefined Behavior before v0.4.4","modified":"2026-07-08T06:27:45.679651074Z","packages":[{"ecosystem":"crates.io","name":"crossbeam-channel","purl":"pkg:cargo/crossbeam-channel","ranges":[">=0.4.3 <0.4.4"],"fixed":["0.4.4"]}]},{"id":"RUSTSEC-2020-0052","url":"https://osv.dev/vulnerability/RUSTSEC-2020-0052","summary":"Undefined Behavior in bounded channel","modified":"2023-11-08T04:02:35.713139Z","packages":[{"ecosystem":"crates.io","name":"crossbeam-channel","purl":"pkg:cargo/crossbeam-channel","ranges":[">=0.4.3 <0.4.4"],"fixed":["0.4.4"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}