CVE-2025-3277
published 2025-04-14CVE-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
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | sqlite3 | < sqlite3 3.46.1-3 (forky) | sqlite3 3.46.1-3 (forky) |
| ghost | sqlite3 | >= 0 < 3.46.1-3 | 3.46.1-3 |
| ghost | sqlite3 | >= 0 < 3.46.1-3 | 3.46.1-3 |
| ghost | sqlite3 | >= 0 < 3.31.1-4ubuntu0.7 | 3.31.1-4ubuntu0.7 |
| ghost | sqlite3 | >= 0 < 3.37.2-2ubuntu0.4 | 3.37.2-2ubuntu0.4 |
| ghost | sqlite3 | >= 0 < 3.45.1-1ubuntu2.3 | 3.45.1-1ubuntu2.3 |
| msrc | azl3_libdb_5.3.28-9_on_azure_linux_3.0 | — | — |
| msrc | azl3_sqlite_3.44.0-1_on_azure_linux_3.0 | — | — |
| msrc | cbl2_libdb_5.3.28-7_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_sqlite_3.39.2-3_on_cbl_mariner_2.0 | — | — |
| sqlite | sqlite | < 3.49.1 | 3.49.1 |
| sqlite | sqlite | >= 3.44.0 < 3.49.1 | 3.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