RUSTSEC-2026-0576

Source
https://rustsec.org/advisories/RUSTSEC-2026-0576
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0576.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0576
Downstream
Published
2026-11-18T12:00:00Z
Modified
2026-11-19T09:00:03Z
Summary
`IndexMap::truncate` could lead to an inconsistent state
Details

IndexMap::truncate was not rebuilding indices when it should, leading to an inconsistent state and memory corruption.

Reported by Jacob Finkelman.

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::truncate"
        ],
        "os": []
    }
}

Database specific

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