{"id":"RUSTSEC-2026-0576","summary":"`IndexMap::truncate` could lead to an inconsistent state","details":"`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).","modified":"2026-11-19T09:00:03.918246184Z","published":"2026-11-18T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/heapless"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0576.html"},{"type":"REPORT","url":"https://github.com/rust-embedded/heapless/issues/674"}],"affected":[{"package":{"name":"heapless","ecosystem":"crates.io","purl":"pkg:cargo/heapless"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.4"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":["heapless::index_map::IndexMap::truncate"],"arch":[],"os":[]}},"database_specific":{"informational":"unsound","categories":["memory-corruption"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0576.json","cvss":null}}],"schema_version":"1.9.2"}