{"id":"CVE-2015-20001","state":"PUBLISHED","title":"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 ","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.","publishedAt":"2021-04-11T19:06:53.000Z","updatedAt":"2024-08-06T08:58:26.443Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/rust-lang/rust/issues/25842","https://github.com/rust-lang/rust/pull/25856"],"weaknesses":[],"ingestedAt":"2026-10-29T19:42:00.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2015/20xxx/CVE-2015-20001.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2015-20001","state":"PUBLISHED","datePublished":"2021-04-11T19:06:53.000Z","dateUpdated":"2024-08-06T08:58:26.443Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2021-04-11T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/rust-lang/rust/issues/25842","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-lang/rust/pull/25856","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2021-04-11T19:06:53.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2015-20001","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://github.com/rust-lang/rust/issues/25842","refsource":"MISC","url":"https://github.com/rust-lang/rust/issues/25842"},{"name":"https://github.com/rust-lang/rust/pull/25856","refsource":"MISC","url":"https://github.com/rust-lang/rust/pull/25856"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/rust-lang/rust/issues/25842","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/rust-lang/rust/pull/25856","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-06T08:58:26.443Z"}}]}}}