Rust standard library BinaryHeap panic safety flaw
CVE-2015-20001High
Rust's BinaryHeap data structure does not safely handle panics that occur during element comparison in sift_up or sift_down_range operations. When a comparison panics, the heap is left in an inconsistent state, which can cause the code to drop zeroed memory as an arbitrary type. An attacker who can provide input that triggers a panic during heap comparison operations could potentially achieve a memory safety violation.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Detail
Affected versions
- rust-lang rust: before 1.2.0
Reports naming this CVE1 in total
· Microsoft Security Blog
FORGE Lab uses agentic tools to identify memory safety issues in Rust (opens in a new tab)