RUSTSEC-2026-0582

published 18 Nov 2026 · updated 19 Nov 2026

On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant

5.0Medium

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

Note that this required filling up the map and having the last item inserted to hash to `u16::MAX`. It is therefore very unlikely to be reachable in a real-world scenario. Reported by [8rsrf7](https://github.com/8rsrf7).

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-0582 severity on Zeptric[![RUSTSEC-2026-0582](https://zeptric.io/badge/cve/RUSTSEC-2026-0582.svg)](https://zeptric.io/cve/RUSTSEC-2026-0582)