CVE-2026-124959

Nmaslib Hnswlib and Spotify Voyager HNSW Index Deserialization Heap Out-of-Bounds Write

Published Nov 9, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
First Time appeared Hnswlib
Hnswlib hnswlib
Spotify
Spotify voyager
Weaknesses CWE-119
Vendors & Products Hnswlib
Hnswlib hnswlib
Spotify
Spotify voyager
Type Values Removed Values Added
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.
Title Nmaslib Hnswlib and Spotify Voyager HNSW Index Deserialization Heap Out-of-Bounds Write
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Nov 12, 2026, 4:41 PM
Reserved
Nov 9, 2026, 3:02 PM
Status
Deferred
Published
Nov 9, 2026, 3:17 PM
Modified
Nov 12, 2026, 7:22 PM