{"id":"RUSTSEC-2026-0576","aliases":[],"title":"`IndexMap::truncate` could lead to an inconsistent state","titleSource":"OSV","descriptionSource":"OSV","description":"`IndexMap::truncate` was not rebuilding indices when it should, leading to an inconsistent state and memory corruption.\n\nReported by [Jacob Finkelman](https://github.com/Eh2406).","severity":"unknown","score":null,"published":"2026-11-18T12:00:00.000Z","modified":"2026-11-19T09:00:03.918Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"heapless","sources":[{"name":"OSV · RUSTSEC-2026-0576","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0576"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.4"}],"type":"SEMVER"}],"versions":[],"fixed":["0.9.4"]}],"sourceAffected":[],"references":["https://crates.io/crates/heapless","https://rustsec.org/advisories/RUSTSEC-2026-0576.html","https://github.com/rust-embedded/heapless/issues/674"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0576","modified":"2026-11-19T09:00:03.918246184Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0576"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-19T09:21:36.029Z","kev":{"status":"unavailable","checkedAt":"2026-11-28T23:55:31.062Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}