Vulnerability Details : CVE-2015-20001
Potential exploit
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.
Vulnerability category: Overflow
Products affected by CVE-2015-20001
- cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2015-20001
0.09%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 41 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2015-20001
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2015-20001
-
The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.Assigned by: nvd@nist.gov (Primary)
References for CVE-2015-20001
-
https://github.com/rust-lang/rust/issues/25842
BinaryHeap is not exception safe · Issue #25842 · rust-lang/rust · GitHubExploit;Issue Tracking;Patch;Third Party Advisory
-
https://github.com/rust-lang/rust/pull/25856
collections: Make BinaryHeap panic safe in sift_up / sift_down by bluss · Pull Request #25856 · rust-lang/rust · GitHubIssue Tracking;Patch;Third Party Advisory
Jump to