Shellfeed logo Shellfeed

CVE-2026-124959 · HIGH (CVSS 7.1)

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

EPSS: 0.1% probability of exploitation in the next 30 days (percentile 2.3).

Details

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.

Severity

HIGH (CVSS 7.1) — vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected packages

  • GIT github.com/nmslib/hnswlib [8297326f128b9a8d5626d9965ba2d7e5a501e7be – d9b3608c83d83b46c96e25088cb1d729b29dcfe9]
  • GIT github.com/spotify/voyager [48f54f8eb3ed272463529473a8cd92ee99e0b425 – 1fa5e17a24de723ce03a76dab0079f55cb0179aa]

References

Posts about CVE-2026-124959