RUSTSEC-2026-0576

published 18 Nov 2026 · updated 19 Nov 2026

`IndexMap::truncate` could lead to an inconsistent state

5.0Medium

No exploitation in the wild has been reported. Fixed in heapless 0.9.4.

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

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
cargo: heapless>=0.0.0-0 <0.9.40.9.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in heapless (Cargo), strongest first

Embed

A live severity badge for an advisory, README or ticket

RUSTSEC-2026-0576 severity on Zeptric[![RUSTSEC-2026-0576](https://zeptric.io/badge/cve/RUSTSEC-2026-0576.svg)](https://zeptric.io/cve/RUSTSEC-2026-0576)