Skip to content
OpenAdvisories
Medium · 6.5 CVE-2023-37365 EUVD-2023-1919GHSA-xwc8-rf6m-xr86PYSEC-2026-1450

hnswlib Double Free vulnerability

Published Jun 30, 2023 · Updated Dec 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
Debian 14 hnswlib 0.7.0-1 —
Debian 13 hnswlib 0.7.0-1 —
Debian 12 hnswlib 0.6.2-2+deb12u1 —
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
PyPI hnswlib < 0.8.0 0.8.0 GHSA-xwc8-rf6m-xr86

References