CVE-2026-124959
Received Received - Intake

Heap Buffer Overflow in Spotify Voyager HNSW Index Loading

Vulnerability report for CVE-2026-124959, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-09

Last updated on: 2026-11-09

Assigner: CERT/CC

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-09
Last Modified
2026-11-09
Generated
2026-11-09
AI Q&A
2026-11-09
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
Spotify Voyager From 2.0.7 (inc) to 2.1.1 (inc)
hnswlib hnswlib From 0.5.0 (inc) to 0.9.0 (inc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a heap out-of-bounds write issue in the deserialization process of HNSW vector indexes used by hnswlib and Spotify Voyager. The loadIndex function does not verify that the element count in a serialized HNSW index is within the stored capacity. An attacker can craft an index file with a smaller capacity but larger element count, causing the loader to write beyond the allocated buffer during deserialization.

Detection Guidance

To detect this vulnerability, inspect HNSW index files for mismatches between stored capacity (max_elements_) and element count (cur_element_count). Check if the loader validates these values before deserialization. Review logs for crashes during index loading or memory corruption errors.

Impact Analysis

This vulnerability can lead to memory corruption, application crashes, or potential arbitrary code execution. It is particularly dangerous when untrusted HNSW index files are loaded, such as in retrieval-augmented generation pipelines, multi-tenant search services, or tools handling user-uploaded index files.

Mitigation Strategies

Update hnswlib and Spotify Voyager to patched versions that enforce cur_element_count <= max_elements_ checks. Avoid loading untrusted index files. Implement input validation for index files in your application. Monitor for crashes or memory corruption during index loading.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-124959. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...