# RUSTSEC-2026-0576: `IndexMap::truncate` could lead to an inconsistent state

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-18T12:00:00.000Z
- Modified: 2026-11-19T09:00:03.918Z

## Description

`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).

(As written by RustSec Advisory Database.)

## Affected

- heapless (crates.io): from 0.0.0-0 before 0.9.4

## References

- <https://crates.io/crates/heapless> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0576.html> (advisory)
- <https://github.com/rust-embedded/heapless/issues/674> (report)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0576](https://rustsec.org/advisories/RUSTSEC-2026-0576.html), CC0-1.0, modified 2026-11-19

---

Page: https://cve.day/RUSTSEC-2026-0576 · Whole record: https://cve.day/RUSTSEC-2026-0576.json · Rebuilt by cve.day 2026-11-25T22:56:43.519Z
