
Catalogue CVE
CVE-2026-124959
hnswlib affected and fixed versions
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.
- Gravité
- High · CVSS 7.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.16% · Nov 22, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | hnswlib | Not reported | AffectedDistribution reports no fix | [CVE-2026-124959] |
| Debiantrixie | hnswlib | 0.8.0-1 | Unknown | [CVE-2026-124959] |
| Debiansid | hnswlib | Not reported | AffectedDistribution reports no fix | [CVE-2026-124959] |
| Debiansid | hnswlib | 0.9.0-2 | Unknown | [CVE-2026-124959] |
| Debianforky | hnswlib | Not reported | AffectedDistribution reports no fix | [CVE-2026-124959] |
| Debianforky | hnswlib | 0.9.0-2 | Unknown | [CVE-2026-124959] |
| Debianbookworm | hnswlib | Not reported | AffectedDistribution reports no fix | [CVE-2026-124959] |
| Debianbookworm | hnswlib | 0.6.2-2+deb12u1 | Unknown | [CVE-2026-124959] |
| Ubuntu26.10 | hnswlib | 0.8.0-1build5 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu26.10 | hnswlib | 0.9.0-2 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu26.04 | hnswlib | 0.8.0-1build3 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu26.04 | hnswlib | 0.8.0-1build4 | Affected | [UBUNTU-CVE-2026-124959] |
More observations (11)
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Ubuntu22.04 | hnswlib | 0.4.0-3build1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu22.04 | hnswlib | 0.5.2-1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu22.04 | hnswlib | 0.6.0-1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu22.04 | hnswlib | 0.6.2-1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu22.04 | hnswlib | 0.6.2-1build1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu24.04 | hnswlib | 0.7.0-1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu24.04 | hnswlib | 0.7.0-2 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu24.04 | hnswlib | 0.7.0-2build1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu24.04 | hnswlib | 0.8.0-1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu24.04 | hnswlib | 0.8.0-1build1 | Affected | [UBUNTU-CVE-2026-124959] |
| Ubuntu26.04 | hnswlib | 0.8.0-1build5 | Affected | [UBUNTU-CVE-2026-124959] |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libhnswlib-dev]Affectée
Paquet source: [hnswlib]
Détails (2)
0.6.2-2+deb12u1· all · bookwormAffectée
dsa · hnswlib · debian · bookworm; pypi · hnswlib · debian · 12
0.6.2-2+deb12u1· all · bookwormAffectée
dsa · hnswlib · debian · bookworm; pypi · hnswlib · debian · 12
- [python3-hnswlib]Affectée
Paquet source: [hnswlib]
Détails (2)
0.6.2-2+deb12u1· amd64 · bookwormAffectée
dsa · hnswlib · debian · bookworm; pypi · hnswlib · debian · 12
0.6.2-2+deb12u1· arm64 · bookwormAffectée
dsa · hnswlib · debian · bookworm; pypi · hnswlib · debian · 12
[Debian 13 (Trixie)]
- [libhnswlib-dev]Affectée
Paquet source: [hnswlib]
Détails (2)
0.8.0-1· all · trixieAffectée
pypi · hnswlib · debian · 13
0.8.0-1· all · trixieAffectée
pypi · hnswlib · debian · 13
- [python3-hnswlib]Affectée
Paquet source: [hnswlib]
Détails (2)
0.8.0-1+b4· amd64 · trixieAffectée
pypi · hnswlib · debian · 13
0.8.0-1+b4· arm64 · trixieAffectée
pypi · hnswlib · debian · 13
Observé:
Références
- [https://github.com/nmslib/hnswlib]
- [https://github.com/spotify/voyager]
- [https://m00dy.sh/notes/when-an-hnsw-index-lies-about-its-capacity]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-124959]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-124959]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-124959]
- [https://security-tracker.debian.org/tracker/CVE-2026-124959]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database]