Vulnerability · Published Apr 7, 2025 · Assigned by mitre
CVE-2025-29087
Low 3.2
In plain English
A low-severity integer overflow in SQLite from SQLite. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | sqlite | 3.45.3-r2 | ALPINE-CVE-2025-29087 |
| Alpine:v3.21 | sqlite | 3.48.0-r1 | ALPINE-CVE-2025-29087 |
| Debian:13 | sqlite3 | 3.46.1-3 | DEBIAN-CVE-2025-29087 |
| Debian:14 | sqlite3 | 3.46.1-3 | DEBIAN-CVE-2025-29087 |
| Ubuntu:22.04:LTS | sqlite3 | 3.37.2-2ubuntu0.4 | USN-7528-1 |
| Ubuntu:24.04:LTS | sqlite3 | 3.45.1-1ubuntu2.3 | USN-7528-1 |
| Ubuntu:24.04:LTS | sqlite3 | 3.45.1-1ubuntu2.3 | UBUNTU-CVE-2025-29087 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L