CVE-2015-20001: In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe.
High CVSS 7.5
- CVE id
- CVE-2015-20001
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Rust Runtimes and servers |
< 1.2.0 | 1.2.0 |
How to fix it
Upgrade Rust to 1.2.0 or later.
rustc --version
- Build with the patched Rust toolchain (rustup update, or rust-toolchain.toml) and redeploy.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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 siftup or siftdown_range panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.
References
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.