{"id":"RUSTSEC-2026-0582","aliases":[],"title":"On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant","originalDescription":"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).","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"crates.io","name":"heapless","range":">=0.0.0-0, <0.9.4","fixed":"0.9.4"}],"references":[{"url":"https://crates.io/crates/heapless","type":"package"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0582.html","type":"advisory"},{"url":"https://github.com/rust-embedded/heapless/issues/672","type":"report"}],"sources":[{"name":"osv","at":"2026-11-19T09:33:35.676Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0582","license":"CC-BY 4.0","firstSeenAt":"2026-11-19T09:33:35.676Z"}],"firstSeenAt":"2026-11-19T09:33:35.676Z","publishedAt":"2026-11-18T12:00:00.000Z","modifiedAt":"2026-11-19T09:00:04.317Z"}