{"id":"RUSTSEC-2026-0576","aliases":[],"title":"`IndexMap::truncate` could lead to an inconsistent state","originalDescription":"`IndexMap::truncate` was not rebuilding indices when it should, leading to an inconsistent state and memory corruption. Reported by [Jacob Finkelman](https://github.com/Eh2406).","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"crates.io","name":"heapless","range":">=0.0.0-0, <0.9.4","fixed":"0.9.4"}],"references":[{"url":"https://crates.io/crates/heapless","type":"package"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0576.html","type":"advisory"},{"url":"https://github.com/rust-embedded/heapless/issues/674","type":"report"}],"sources":[{"name":"osv","at":"2026-11-19T09:33:35.796Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0576","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T09:33:35.796Z"}],"firstSeenAt":"2026-11-19T09:33:35.796Z","publishedAt":"2026-11-18T12:00:00.000Z","modifiedAt":"2026-11-19T09:00:03.918Z"}