cbcvebase.
CVE-2025-3277
published 2025-04-14

CVE-2025-3277: An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer. When SQLite then…

medium6.9CVSS 4.0
AVNACLATNPRNUINVCLVILVALSCLSILSALEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
An integer overflow can be triggered in SQLite’s `concat_ws()` function. The resulting, truncated integer is then used to allocate a buffer. When SQLite then writes the resulting string to the buffer, it uses the original, untruncated size and thus a wild Heap Buffer overflow of size ~4GB can be triggered. This can result in arbitrary code execution.

Affected

12 ranges
VendorProductVersion rangeFixed in
debiansqlite3< sqlite3 3.46.1-3 (forky)sqlite3 3.46.1-3 (forky)
ghostsqlite3>= 0 < 3.46.1-33.46.1-3
ghostsqlite3>= 0 < 3.46.1-33.46.1-3
ghostsqlite3>= 0 < 3.31.1-4ubuntu0.73.31.1-4ubuntu0.7
ghostsqlite3>= 0 < 3.37.2-2ubuntu0.43.37.2-2ubuntu0.4
ghostsqlite3>= 0 < 3.45.1-1ubuntu2.33.45.1-1ubuntu2.3
msrcazl3_libdb_5.3.28-9_on_azure_linux_3.0
msrcazl3_sqlite_3.44.0-1_on_azure_linux_3.0
msrccbl2_libdb_5.3.28-7_on_cbl_mariner_2.0
msrccbl2_sqlite_3.39.2-3_on_cbl_mariner_2.0
sqlitesqlite< 3.49.13.49.1
sqlitesqlite>= 3.44.0 < 3.49.13.49.1

CVSS provenance

nvdv4.06.9MEDIUMCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv7.5HIGH