In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe
Published Apr 11, 2021
7.5
HIGHCVSS 3.1
EPSS 1.32%
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.
Affected products
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.32% (0.01324) | 69.87th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.32% (0.01324) | 67.10th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.40% (0.00403) | 58.76th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.11% (0.00111) | 45.95th | v3 (v2023.03.01) |
| Dec 26, 2023 | 0.11% (0.00111) | 44.10th | v3 (v2023.03.01) |
| Nov 16, 2023 | 0.10% (0.00097) | 40.37th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.08% (0.00083) | 33.67th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
References (2)
- https://github.com/rust-lang/rust/issues/25842 x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
- https://github.com/rust-lang/rust/pull/25856 x_refsource_MISCIssue TrackingPatchThird Party Advisory
| Link | Providers | Tags |
|---|---|---|
| https://github.com/rust-lang/rust/issues/25842 | x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory | |
| https://github.com/rust-lang/rust/pull/25856 | x_refsource_MISCIssue TrackingPatchThird Party Advisory |
Change history (0)
No recorded changes yet.