# CVE-2023-37365: hnswlib Double Free vulnerability

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-06-30T00:00:00.000Z
- Modified: 2026-07-07T17:57:32.188Z
- Also known as: GHSA-xwc8-rf6m-xr86, PYSEC-2026-1450
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- hnswlib (PyPI): before 0.8.0
- hnswlib_project hnswlib: 0.7.0

## Every score

- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/nmslib/hnswlib/issues/467> (exploit, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-37365> (advisory)
- <https://github.com/nmslib/hnswlib/pull/484> (web)
- <https://github.com/nmslib/hnswlib/commit/f6d170ce0b41f9e75ace473b09df6e7872590757> (web)
- <https://github.com/nmslib/hnswlib> (package)
- <https://pypi.org/project/hnswlib> (package)
- <https://github.com/advisories/GHSA-xwc8-rf6m-xr86> (advisory)

## Sources

- CVE List: [CVE-2023-37365](https://www.cve.org/CVERecord?id=CVE-2023-37365), CVE Terms of Use, modified 2024-12-05
- GitHub Advisory Database: [GHSA-xwc8-rf6m-xr86](https://github.com/advisories/GHSA-xwc8-rf6m-xr86), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2023-37365](https://nvd.nist.gov/vuln/detail/CVE-2023-37365), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1450](https://osv.dev/vulnerability/PYSEC-2026-1450), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2023-37365 · Whole record: https://cve.day/CVE-2023-37365.json · Rebuilt by cve.day 2026-11-25T22:58:25.344Z
