Advisory

PYSEC-2026-1450

Also known as: CVE-2023-37365, GHSA-xwc8-rf6m-xr86

Summary

hnswlib Double Free vulnerability

Details

Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Dates

Published
2026-07-07 11:45 UTC
Modified
2026-07-07 17:47 UTC

Affected packages and fixes

hnswlib

PyPI · All systems

Affected

  • introduced 0, fixed 0.8.0 (ecosystem)

Fixed versions

0.8.0

Fix

  • Fixed version 0.8.0
    pip install --upgrade hnswlib==0.8.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences