HIGH 7.1

CVE-2026-124959

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

Preliminary: affected artifacts were inferred from the fix commits of the source repository and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
com.spotify » voyagerpreliminary
>= 0.5.0, <= 0.9.0>= 2.0.7, <= 2.1.1
-

Blast radius

1affected artifacts
4affected versions
2dependent artifacts (est.)
54dependent versions

100% of the dependent artifacts (2) still pull an affected version in their latest release.

DepthDependent versions
Direct
27
2 hops
27

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects PyPI (1 package) . See all on OSV