Skip to content
OpenAdvisories
High · 7.1 CVE-2026-124959 EUVD-2026-120081GHSA-pvwj-4565-gq34

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

Published Nov 9, 2026 · Updated Nov 12, 2026 · 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.

Affected products

VendorProductAffectedFixed
Spotify Voyager 2.0.7 – ≤ 2.1.1 —
hnswlib hnswlib 0.5.0 – ≤ 0.9.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 hnswlib No fix yet —
Debian 13 hnswlib No fix yet —
Debian 12 hnswlib No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 hnswlib No fix yet —
Ubuntu 26.04 LTS hnswlib No fix yet —
Ubuntu 24.04 LTS hnswlib No fix yet —
Ubuntu 22.04 LTS hnswlib No fix yet —

References