CVE-2023-37365Hnswlib Project Hnswlib
Medium 6.5 No auth needed
Follow: this CVE · Hnswlib Project · Hnswlib Project Hnswlib We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 50
- Auth required
- No
- Published
- Jun 30, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-415
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
Hnswlib 0.7.0 has a double free in init_index when the M argument is a large integer.
What to do
- Apply the vendor's security update for Hnswlib.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | hnswlib |
< 0.8.0 |
0.8.0 |
pip install "hnswlib>=0.8.0" |
| PyPI | hnswlib |
< 0.8.0 |
0.8.0 |
pip install "hnswlib>=0.8.0" |
Per OSV / GitHub Advisories (GHSA-xwc8-rf6m-xr86, PYSEC-2026-1450). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hnswlib_project | hnswlib | 0.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Issue Tracking Third Party Advisory