CVE-2026-124959
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 us…
Impact
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.
An attacker can exploit this with local access to the system, without logging in, but a user has to do something, such as open a file or a link. If it succeeds: high risk of data or systems being changed, high risk of outages.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| DevDojo | Voyager | Version 2.0.7 ≤2.1.1 |
| Hnswlib | Hnswlib | from 0.5.0 through 0.9.0 Version 0.5.0 ≤0.9.0 |
| Spotify | Voyager | from 2.0.7 through 2.1.1 |