CVE-2020-15254Crossbeam Project Crossbeam
Critical 9.8 No auth needed
Follow: this CVE · Crossbeam Project · Crossbeam Project Crossbeam We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.7% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Oct 16, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Crossbeam.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | crossbeam-channel |
≥ 0.4.3 < 0.4.4 |
0.4.4 |
cargo update -p crossbeam-channel --precise 0.4.4 |
| crates.io | crossbeam-channel |
≥ 0.4.3 < 0.4.4 |
0.4.4 |
cargo update -p crossbeam-channel --precise 0.4.4 |
| crates.io | crossbeam-channel |
≥ 0.4.3 < 0.4.4 |
0.4.4 |
cargo update -p crossbeam-channel --precise 0.4.4 |
Per OSV / GitHub Advisories (GHSA-m8h8-v6jh-c762, GHSA-v5m7-53cv-f3hx, RUSTSEC-2020-0052). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| crossbeam_project | crossbeam | < 0.4.4 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Exploit Third Party Advisory
- github.com Exploit Patch Third Party Advisory
- github.com Third Party Advisory