# CVE-2020-15254: Undefined Behavior in bounded Crossbeam channel

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.70%, higher than 86% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-06-26T12:00:00.000Z
- Modified: 2026-07-08T06:27:45.679Z
- Also known as: GHSA-m8h8-v6jh-c762, GHSA-v5m7-53cv-f3hx, RUSTSEC-2020-0052
- Related: CVE-2020-35904
- Weaknesses: CWE-119, CWE-131, CWE-401
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- crossbeam-rs crossbeam: < 0.4.4
- crossbeam-channel (crates.io): from 0.4.3 before 0.4.4
- crossbeam_project crossbeam: before 0.4.4

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/crossbeam-rs/crossbeam/issues/539> (exploit, third-party-advisory, web)
- <https://github.com/crossbeam-rs/crossbeam/pull/533> (exploit, patch, third-party-advisory, web)
- <https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-v5m7-53cv-f3hx> (third-party-advisory, web)
- <https://github.com/RustSec/advisory-db/pull/425> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-35904> (advisory)
- <https://github.com/crossbeam-rs/crossbeam> (package)
- <https://rustsec.org/advisories/RUSTSEC-2020-0052.html> (advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15254> (advisory)
- <https://crates.io/crates/crossbeam-channel> (package)

## Sources

- CVE List: [CVE-2020-15254](https://www.cve.org/CVERecord?id=CVE-2020-15254), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-m8h8-v6jh-c762](https://github.com/advisories/GHSA-m8h8-v6jh-c762), CC-BY-4.0, modified 2023-11-08
- GitHub Advisory Database: [GHSA-v5m7-53cv-f3hx](https://github.com/advisories/GHSA-v5m7-53cv-f3hx), CC-BY-4.0, modified 2026-07-08
- RustSec Advisory Database: [RUSTSEC-2020-0052](https://rustsec.org/advisories/RUSTSEC-2020-0052.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-15254](https://nvd.nist.gov/vuln/detail/CVE-2020-15254), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15254 · Whole record: https://cve.day/CVE-2020-15254.json · Rebuilt by cve.day 2026-11-25T22:57:55.187Z
