Live threats

All CVEs / Crossbeam Project

CVE-2020-15254Crossbeam Project Crossbeam

Critical 9.8 No auth needed

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
Weakness (CWE)
CWE-119, CWE-401
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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Crossbeam.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
crossbeam_projectcrossbeam< 0.4.4

Official sources

References

Links published by the sources. Open them with care.