Out-of-bounds write in hnswlib and Spotify Voyager index loading
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA.
Summary
hnswlib from 0.5.0 through 0.9.0 and Spotify Voyager from 2.0.7 through 2.1.1 do not check the element count in a serialized HNSW index against its stored capacity. The loadIndex function uses that count to write past the heap buffer allocated for the index (CWE-787). A local user who is tricked into loading a crafted index file can crash the application.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for hnswlib. The sources list no fixed version for Spotify Voyager.
Written with Claude Haiku 5.5 from the sources below · 2026-11-12
Timeline
- 2026-11-09 Threatist record created from CVE-2026-124959
- 2026-11-09 Alias added: GHSA-pvwj-4565-gq34
- 2026-11-12 CVSS score added · CISA ADP
- 2026-11-12 Weakness changed · CISA ADP
- 2026-11-12 CISA SSVC decision points changed
References
More Spotify vulnerabilities
- TI-2018-01083 OS command injection in Spotify Music Player CVSS 3.0HIGH 8.8
- TI-2018-16065 Luigi version prior to version 2.8.0; after commit… CVSS 3.0HIGH 8.8
Sources
- CVE-2026-124959 · CVE Program
- CVE-2026-124959 · NVD
- FIRST EPSS
- GHSA-pvwj-4565-gq34 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences