Skip to main content
← Vulnerabilities

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

Exploited
No known exploitation
Fix
No fix listed
Who is exposed
Not reported
Published
Last modified
5/100 · provisional
None on Exploit-DB, Metasploit or GitHub

Summary

The loadIndex function in the nmslib hnswlib and Spotify Voyager HNSW index libraries fails to check that the element count in a serialized index fits within its stored capacity, so a crafted index file can cause a heap out-of-bounds write that may crash the application when loaded. Because the access vector and login requirements are not specified, this description does not state how an attacker would reach the flaw.

Written by anthropic/claude-haiku-5.5 from the sources below. Verify against them.

Read the original 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.

cve.now Index

5Pcve.now Index 5 of 100 · methodology v3 · provisional
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure?/25Unknown. No advisory context yet
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity?/10Unknown. No CVSS score or vendor rating
  • No patch5/5No patch listed yet

What would change the score

  • Would score about 60 if added to CISA KEV
  • Would score about 55 if CISA's SSVC rates exploitation active
  • Would score about 27 if advisories confirm default setups are exposed

Timeline

  1. CVE published
  2. First seen by cve.now

Affected versions

  • Spotify Voyager

    From 2.0.7 · through 2.1.1

  • hnswlib hnswlib

    From 0.5.0 · through 0.9.0

Evidence 3

  1. Repository
  2. Repository
  3. Link

Corrections

None so far.

Something wrong on this page? Report an error. Every fix is listed here.

Questions about CVE-2026-124959

Is CVE-2026-124959 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data

Which versions are affected by CVE-2026-124959?

Voyager: from 2.0.7 through 2.1.1. hnswlib: from 0.5.0 through 0.9.0.Source: cve.now feed data