{"id":"PYSEC-2026-1450","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.","aliases":["CVE-2023-37365","GHSA-xwc8-rf6m-xr86"],"modified":"2026-07-07T17:47:43.447013871Z","published":"2026-07-07T11:45:19.660215Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37365"},{"type":"WEB","url":"https://github.com/nmslib/hnswlib/issues/467"},{"type":"WEB","url":"https://github.com/nmslib/hnswlib/pull/484"},{"type":"WEB","url":"https://github.com/nmslib/hnswlib/commit/f6d170ce0b41f9e75ace473b09df6e7872590757"},{"type":"PACKAGE","url":"https://github.com/nmslib/hnswlib"},{"type":"PACKAGE","url":"https://pypi.org/project/hnswlib"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xwc8-rf6m-xr86"}],"affected":[{"package":{"name":"hnswlib","ecosystem":"PyPI","purl":"pkg:pypi/hnswlib"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.0"}]}],"versions":["0.3.2.0","0.3.4","0.4.0","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.6.2","0.7.0"],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/hnswlib/PYSEC-2026-1450.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}