Nmaslib Hnswlib and Spotify Voyager HNSW Index Deserialization Heap Out-of-Bounds Write
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 9, 2026
- Updated
- Nov 12, 2026
- Reserved
- Nov 9, 2026
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.
| Product | Versions |
|---|---|
| Voyager Spotify | 2.0.7 through 2.1.1 Affected |
| hnswlib hnswlib | 0.5.0 through 0.9.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.1 High | CISA-ADP |
Weaknesses
- CWE-787 Out-of-bounds Write
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.