RUSTSEC-2026-0582

Source
https://rustsec.org/advisories/RUSTSEC-2026-0582
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0582.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0582
Downstream
Published
2026-11-18T12:00:00Z
Modified
2026-11-19T09:00:04Z
Summary
On maps of `u16::MAX` elements, `IndexMap::insert` could lead to a broken invariant
Details

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.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / heapless

Package

Name
heapless
View open source insights on deps.dev
Purl
pkg:cargo/heapless

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.9.4

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "heapless::index_map::IndexMap::insert"
        ],
        "os": []
    }
}

Database specific

categories
[
    "memory-corruption"
]
cvss
null
informational
"unsound"
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0582.json"