RUSTSEC-2026-0582 json
On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant
published 2d ago modified yesterday
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- crates.io heapless 0.9.4
Is RUSTSEC-2026-0582 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | heapless | >=0.0.0-0, <0.9.4 |
0.9.4 |
References
Sources
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.