# CVE-2026-124959: Nmaslib Hnswlib and Spotify Voyager HNSW Index Deserialization Heap Out-of-Bounds Write

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-11-09T15:04:38.649Z
- Modified: 2026-11-12T19:22:01.433Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: certcc

## 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.

(As written by CVE List.)

## Affected

- Spotify Voyager: from 2.0.7 up to 2.1.1
- hnswlib hnswlib: from 0.5.0 up to 0.9.0

## References

- <https://m00dy.sh/notes/when-an-hnsw-index-lies-about-its-capacity>
- <https://github.com/nmslib/hnswlib>
- <https://github.com/spotify/voyager>

## Sources

- CVE List: [CVE-2026-124959](https://www.cve.org/CVERecord?id=CVE-2026-124959), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-124959](https://nvd.nist.gov/vuln/detail/CVE-2026-124959), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-124959 · Whole record: https://cve.day/CVE-2026-124959.json · Rebuilt by cve.day 2026-11-25T22:59:49.599Z
