CVE-2015-20001

HIGH

Rust < 1.2.0 - Memory Safety Violation via BinaryHeap Panic

Title source: llm
STIX 2.1

Description

In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe. The binary heap is left in an inconsistent state when the comparison of generic elements inside sift_up or sift_down_range panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.

References (2)

Core 2
Core References
Exploit, Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-lang/rust/issues/25842
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/rust-lang/rust/pull/25856

Scores

CVSS v3 7.5
EPSS 0.0132
EPSS Percentile 67.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-119
Status published
Products (1)
rust-lang/rust < 1.2.0
Published Apr 11, 2021
Tracked Since Feb 18, 2026