DEBIAN-CVE-2026-124959: Debian/hnswlib vulnerability

Published Nov 9, 2026
·
Updated

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 Software

3 affected components
debian/hnswlib*
debian/hnswlib*
debian/hnswlib*

Event History

Nov 9, 2026
CVE Published
via OSV·03:17 PM
Data Sourced
via OSV·03:17 PM
DescriptionAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using hnswlib that load serialized HNSW index files are exposed if an attacker can cause them to load a crafted index file. The described impact is a potential application crash during index loading.

2

What must an attacker do to trigger the flaw?

The attacker needs to supply an HNSW index whose serialized element count exceeds the stored capacity used to allocate the loader's heap buffer. When the application loads that index, the loader can write beyond the allocated buffer.

3

Is a default configuration known to be affected?

The available information does not identify any particular configuration requirement or default setting. Exposure depends on whether the application loads an attacker-controlled or otherwise untrusted serialized index file.

4

What can be done if an update is not immediately available?

Do not load HNSW index files from untrusted sources. Restrict who can provide or replace serialized index files and validate their provenance before loading them.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203