{"id":"RUSTSEC-2026-0582","aliases":[],"title":"On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant","titleSource":"OSV","descriptionSource":"OSV","description":"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.\n\nReported by [8rsrf7](https://github.com/8rsrf7).","severity":"unknown","score":null,"published":"2026-11-18T12:00:00.000Z","modified":"2026-11-19T09:00:04.317Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"heapless","sources":[{"name":"OSV · RUSTSEC-2026-0582","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0582"}],"ranges":[{"events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.4"}],"type":"SEMVER"}],"versions":[],"fixed":["0.9.4"]}],"sourceAffected":[],"references":["https://crates.io/crates/heapless","https://rustsec.org/advisories/RUSTSEC-2026-0582.html","https://github.com/rust-embedded/heapless/issues/672"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0582","modified":"2026-11-19T09:00:04.317864790Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0582"}],"assessments":[],"products":[],"remediation":[],"observedAt":"2026-11-19T09:21:33.305Z","kev":{"status":"unavailable","checkedAt":"2026-11-29T00:05:30.113Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}