CVE-2023-37365
hnswlib Double Free vulnerability
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.5
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
CVE-2023-37365- 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 - Weakness
- CWE-415
- Updated
- 2026-11-02
CVE List No score
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
CVE-2023-37365- Updated
- 2026-11-02
EUVDEUVD-2023-1919 No score
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
EUVD-2023-1919- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xwc8-rf6m-xr86
6.5
hnswlib Double Free vulnerability
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
GHSA-xwc8-rf6m-xr86- 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 - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-37365
6.5
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
DEBIAN-CVE-2023-37365- 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 - Updated
- 2026-11-02
OSVGHSA-xwc8-rf6m-xr86
6.5
hnswlib Double Free vulnerability
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
GHSA-xwc8-rf6m-xr86- 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 - Weakness
- CWE-415
- Updated
- 2026-11-02
OSVPYSEC-2026-1450
6.5
hnswlib Double Free vulnerability
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
PYSEC-2026-1450- 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 - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-37365
6.5
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
UBUNTU-CVE-2023-37365- 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 - Updated
- 2026-11-02
OSV No score
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
- Record
CVE-2023-37365- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
hnswlibPyPI |
before 0.8.0 | 0.8.0 |
hnswlibDebian:12 |
before 0.6.2-2+deb12u1, plus listed versions 0.6.2-2 |
0.6.2-2+deb12u1 |
hnswlibDebian:13 |
before 0.7.0-1 | 0.7.0-1 |
hnswlibDebian:14 |
before 0.7.0-1 | 0.7.0-1 |
hnswlibPyPI |
before 0.8.0, plus listed versions 0.3.2.00.3.40.4.00.5.00.5.1 Show 5 moreShow less0.5.20.6.00.6.10.6.20.7.0 |
0.8.0 |
hnswlibUbuntu:22.04:LTS |
All versions, plus listed versions 0.4.0-3build10.5.2-10.6.0-10.6.2-10.6.2-1build1 |
None known |
hnswlibUbuntu:24.04:LTS |
All versions, plus listed versions 0.7.0-10.7.0-20.7.0-2build10.8.0-10.8.0-1build1 |
None known |
hnswlibUbuntu:25.10 |
All versions, plus listed versions 0.8.0-1build3 |
None known |
hnswlibUbuntu:26.10 |
All versions, plus listed versions 0.8.0-1build50.9.0-2 |
None known |
hnswlibUbuntu:26.04:LTS |
All versions, plus listed versions 0.8.0-1build30.8.0-1build40.8.0-1build5 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-37365 is a medium vulnerability (CVSS 6.5) in Hnswlib Project Hnswlib, published June 30, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.59%, the 48th percentile. Fixed in hnswlib 0.8.0.
References
github.com/nmslib/hnswlib/issues/467
nvd.nist.gov/vuln/detail/CVE-2023-37365
github.com/nmslib/hnswlib/pull/484
github.com/nmslib/hnswlib/commit/f6d170ce0b41f9e75ace473b09df6e7872590757
github.com/advisories/GHSA-xwc8-rf6m-xr86
github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37365.json