Skip to content

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 writes the resulting string to the buffer,...

MediumCVSS 6.9 EPSS 1.3%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

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.

Upgrade path

16 packages: 12 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
azure linux libdb(Azure Linux 3.0) All versions No fix listed No fix yet
azure linux sqlite(Azure Linux 3.0) All versions No fix listed No fix yet
cbl-mariner libdb(CBL-Mariner 2.0) All versions No fix listed No fix yet
cbl-mariner sqlite(CBL-Mariner 2.0) All versions No fix listed No fix yet
alpine/qt6-qtwebengine(Alpine v3.22) < 6.8.2-r4 6.8.2-r4 Fixed
alpine/qt6-qtwebengine(Alpine v3.23) < 6.8.2-r4 6.8.2-r4 Fixed
alpine/qt6-qtwebengine(Alpine v3.24) < 6.8.2-r4 6.8.2-r4 Fixed
alpine/sqlite(Alpine v3.21) >= 3.44.0, < 3.48.0-r1 3.48.0-r1 Fixed
debian/sqlite3(Debian 13) < 3.46.1-3 3.46.1-3 Fixed
debian/sqlite3(Debian 14) < 3.46.1-3 3.46.1-3 Fixed
Siemens RUGGEDCOM CROSSBOW Station Access Controller (SAC) < V5.7 V5.7 Fixed
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5 Fixed
SQLite = < 3.49.1; >= 3.44.0, < 3.49.1 3.49.1 Fixed
ubuntu/sqlite3(Ubuntu 24.04) < 3.45.1-1ubuntu2.3 3.45.1-1ubuntu2.3 Fixed

Affected products

ProductAffected versionsFixed in
cbl-mariner libdb(CBL-Mariner:2.0) All versions No fix listed
azure linux sqlite(Azure Linux:3.0) All versions No fix listed
cbl-mariner sqlite(CBL-Mariner:2.0) All versions No fix listed
azure linux libdb(Azure Linux:3.0) All versions No fix listed
debian/sqlite3(Debian:13) < 3.46.1-3 3.46.1-3
debian/sqlite3(Debian:14) < 3.46.1-3 3.46.1-3
SQLite = < 3.49.1 No fix listed
Siemens RUGGEDCOM CROSSBOW Station Access Controller (SAC) < V5.7 V5.7
Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
Siemens SIPLUS S7-1500 CPU 1518-4 PN/DP MFP >= V3.1.0, < V3.1.5 V3.1.5
alpine/qt6-qtwebengine(Alpine:v3.22) < 6.8.2-r4 6.8.2-r4
alpine/qt6-qtwebengine(Alpine:v3.23) < 6.8.2-r4 6.8.2-r4
alpine/qt6-qtwebengine(Alpine:v3.24) < 6.8.2-r4 6.8.2-r4
alpine/sqlite(Alpine:v3.21) >= 3.44.0, < 3.48.0-r1 3.48.0-r1
ubuntu/sqlite3(Ubuntu:24.04) < 3.45.1-1ubuntu2.3 3.45.1-1ubuntu2.3
SQLite >= 3.44.0, < 3.49.1 3.49.1

References