Email me

Rust advisories / crossbeam-channel

Vulnerability MediumRUSTSEC-2020-0052 · crossbeam-channel

RUSTSEC-2020-0052: Undefined Behavior in bounded channel

Short answerA security vulnerability in the crossbeam-channel crate: Undefined Behavior in bounded channel. GitHub rates it Medium. Fixed in 0.4.4: update to a fixed version.

Cratecrossbeam-channel
TypeVulnerability (memory-corruption)
Affected versionsFrom 0.4.3 before 0.4.4.
Fixed in0.4.4
SeverityMedium (GitHub rating)
Published2020-06-26
Last changed2023-11-08
Also known asCVE-2020-15254, CVE-2020-35904, GHSA-m8h8-v6jh-c762, GHSA-v5m7-53cv-f3hx

What to do

  1. See which version you have: cargo tree -i crossbeam-channel (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p crossbeam-channel. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example crossbeam-channel = "0.4.4") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

The affected version of this crate's 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.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for crossbeam-channel

Full security history of crossbeam-channel

Up next

Same cratecrossbeam-channel: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ