Nmaslib Hnswlib and Spotify Voyager HNSW Index Deserialization Heap Out-of-Bounds Write
Summary
| CVE | CVE-2026-124959 |
|---|---|
| State | PUBLISHED |
| Assigner | certcc |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-09 15:17:19 UTC |
| Updated | 2026-11-09 15:17:19 UTC |
| Description | The loadIndex function in nmslib hnswlib and Spotify Voyager does not verify that the element count in a serialized HNSW index is within the stored capacity used to allocate the heap buffer. An attacker can supply a crafted index file with an element count greater than the stored capacity, causing the loader to write beyond the allocated buffer and potentially crash the application when it loads the file. |
Risk And Classification
Problem Types: CWE-787 Out-of-bounds Write
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| m00dy.sh/notes/when-an-hnsw-index-lies-about-its-capacity | [email protected] | m00dy.sh | |
| github.com/nmslib/hnswlib | [email protected] | github.com | |
| github.com/spotify/voyager | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.