Memory Safety Flaw in Rust's BinaryHeap Affects Software Integrity
CVE-2015-20001
7.5HIGH
Key facts: CVE-2015-20001 is a high severity (CVSS 7.5) vulnerability in Rust-lang Rust. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 1.3%, the estimated probability of exploitation in the next 30 days.
What is CVE-2015-20001?
A memory safety flaw exists in the Rust standard library's BinaryHeap structure, which is not panic-safe in versions prior to 1.2.0. When operations like sift_up or sift_down_range encounter a panic during the comparison of generic elements, the binary heap is left in an inconsistent state. This inconsistency can lead to a drop of zeroed memory as an arbitrary type, ultimately jeopardizing memory safety and potentially enabling exploitation within affected applications.
References
https://github.com/rust-lang/rust/issues/25842
x_refsource_MISC
https://github.com/rust-lang/rust/pull/25856
x_refsource_MISC
More Rust-lang vulnerabilities
- CVE-2024-24576: Rust standard library vulnerable to arbitrary shell command execution(CRITICAL)
