Skip to content

CVE-2025-29087 In SQLite 3.44.0 through 3.49.0 before 3.49.1, the concat_ws() SQL function can cause memory to be written beyond the end of a malloc-allocated buffer. If the separator argument is attacker-controlled...

HighCVSS 7.5 EPSS 0.53%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebian

Description

In SQLite 3.44.0 through 3.49.0 before 3.49.1, the concat_ws() SQL function can cause memory to be written beyond the end of a malloc-allocated buffer. If the separator argument is attacker-controlled and has a large string (e.g., 2MB or more), an integer overflow occurs in calculating the size of the result buffer, and thus malloc may not allocate enough memory.

Upgrade path

15 packages: 11 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/sqlite(Alpine v3.19) >= 3.44.0, < 3.44.2-r1 3.44.2-r1 Fixed
alpine/sqlite(Alpine v3.20) >= 3.44.0, < 3.45.3-r2 3.45.3-r2 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.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 libdb(Azure Linux:3.0) All versions No fix listed
cbl-mariner sqlite(CBL-Mariner:2.0) All versions No fix listed
azure linux sqlite(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.44.0, < 3.49.1 3.49.1
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/sqlite(Alpine:v3.19) >= 3.44.0, < 3.44.2-r1 3.44.2-r1
alpine/sqlite(Alpine:v3.20) >= 3.44.0, < 3.45.3-r2 3.45.3-r2
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

References