CVE-2020-35904
Rust vulnerability analysis and mitigation

Overview

An issue was discovered in the crossbeam-channel crate before version 0.4.4 for Rust. The vulnerability, identified as CVE-2020-35904, involves incorrect assumptions about the relationship between memory allocation and iterator elements count. The issue was reported on June 26, 2020, and officially issued on October 11, 2020 (RustSec Advisory).

Technical details

The bounded channel implementation incorrectly assumes that Vec::from_iter allocates capacity equal to the number of iterator elements. However, Vec::from_iter provides no such guarantee and may allocate extra memory. When the bounded channel's destructor reconstructs Vec from the raw pointer based on these incorrect assumptions, it leads to unsound behavior and incorrect deallocation when Vec::from_iter has allocated different sizes than the number of iterator elements (RustSec Advisory). The vulnerability has been assigned a CVSS v3.1 Base Score of 5.5 (MEDIUM) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

The vulnerability results in memory corruption due to incorrect deallocation, which can lead to undefined behavior in applications using the affected versions of the crossbeam-channel crate (RustSec Advisory).

Exploitability

The vulnerability requires local access and low complexity to exploit, with no user interaction required. It primarily affects the availability of the system through potential crashes due to memory corruption (NVD).

Mitigation and workarounds

The vulnerability has been patched in version 0.4.4 and later of the crossbeam-channel crate. Users should upgrade to version 0.4.4 or newer to resolve this issue. Versions prior to 0.4.3 are unaffected by this vulnerability (RustSec Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68537HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
CVE-2026-68523HIGH7.5
  • Rust logoRust
  • fulgur
NoYesSep 17, 2026
RUSTSEC-2026-0289NONEN/A
  • Rust logoRust
  • pqc_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0287NONEN/A
  • Rust logoRust
  • cosmian_kyber
NoNoSep 17, 2026
RUSTSEC-2026-0286NONEN/A
  • Rust logoRust
  • cryptoki
NoYesSep 16, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management