# CVE-2020-35904: Incorrect buffer size in crossbeam-channel

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link 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-15254
- Weaknesses: CWE-119, CWE-131, CWE-401
- Assigned by: mitre

## Description

An issue was discovered in the crossbeam-channel crate before 0.4.4 for Rust. It has incorrect expectations about the relationship between the memory allocation and how many iterator elements there are.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- crossbeam-channel (crates.io): from 0.4.3 before 0.4.4
- crossbeam-channel_project crossbeam-channel: before 0.4.4

## Every score

- 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 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:N/I:N/A:P`

## References

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

## Sources

- CVE List: [CVE-2020-35904](https://www.cve.org/CVERecord?id=CVE-2020-35904), 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-35904](https://nvd.nist.gov/vuln/detail/CVE-2020-35904), Public domain, modified 2026-06-17

---

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