PyPA Advisory Database
PYSEC-2026-1450
hnswlib Double Free vulnerability
Details
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | hnswlib | All versions before 0.8.0 (fixed in 0.8.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-37365
- https://github.com/nmslib/hnswlib/issues/467
- https://github.com/nmslib/hnswlib/pull/484
- https://github.com/nmslib/hnswlib/commit/f6d170ce0b41f9e75ace473b09df6e7872590757
- https://github.com/nmslib/hnswlib
- https://pypi.org/project/hnswlib
- https://github.com/advisories/GHSA-xwc8-rf6m-xr86