Description
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | hnswlib | 0.7.0-1 | — |
| Debian 13 | hnswlib | 0.7.0-1 | — |
| Debian 12 | hnswlib | 0.6.2-2+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | hnswlib | No fix yet | — |
| Ubuntu 26.04 LTS | hnswlib | No fix yet | — |
| Ubuntu 25.10 | hnswlib | No fix yet | — |
| Ubuntu 24.04 LTS | hnswlib | No fix yet | — |
| Ubuntu 22.04 LTS | hnswlib | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | hnswlib | < 0.8.0 | 0.8.0 | GHSA-xwc8-rf6m-xr86 |