Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. hnswlib
  4. ›
  5. CVE-2023-37365

CVE-2023-37365: hnswlib Double Free vulnerability

June 30, 2023 (updated March 25, 2026)

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

References

  • github.com/advisories/GHSA-xwc8-rf6m-xr86
  • github.com/nmslib/hnswlib
  • github.com/nmslib/hnswlib/commit/f6d170ce0b41f9e75ace473b09df6e7872590757
  • github.com/nmslib/hnswlib/issues/467
  • github.com/nmslib/hnswlib/pull/484
  • nvd.nist.gov/vuln/detail/CVE-2023-37365

Code Behaviors & Features

Detect and mitigate CVE-2023-37365 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.8.0

Fixed versions

  • 0.8.0

Solution

Upgrade to version 0.8.0 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-415: Double Free

Source file

pypi/hnswlib/CVE-2023-37365.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:01 +0000.