cvelo
P2 · HighCVSS 7.1

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

  • CVE-2026-124959
  • GHSA-pvwj-4565-gq34
  • EUVD-2026-120081

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.

Text from the CVE.org record.

Affected

  • hnswlib

    • from 0.5.0 up to 0.9.0
  • Spotify Voyager

    • from 2.0.7 up to 2.1.1

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.