Double Free Affecting hnswlib package, versions [0,]
Threat Intelligence
Exploit Maturity
Proof of concept
EPSS
0.06% (26th
percentile)
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-HNSWLIB-5750284
- published 2 Jul 2023
- disclosed 30 Jun 2023
- credit D4rkD0g
Introduced: 30 Jun 2023
CVE-2023-37365 Open this link in a new tabHow to fix?
A fix was pushed into the master
branch but not yet published.
Overview
hnswlib is a hnswlib
Affected versions of this package are vulnerable to Double Free in init_index
when the M
argument is a large integer.
PoC
import hnswlib
h = hnswlib.Index(space='l2', dim=1)
h.init_index(max_elements=1, ef_construction=200, M=2305843009213693951)
h.add_items([1], -1)
References
CVSS Scores
version 3.1