CVE-2015-20001

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductRust
PublishedApr 11, 2021
First seenApr 11, 2021

How to fix

Update
  • rust-lang rust1.2.0 or later

Affected products

ProductAffected versionsFixed in
rust-lang rustv < 1.2.01.2.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.