CVE-2025-29087

sqlite: Integer Overflow in SQLite concat_ws Function

Published Apr 7, 2025 CVSS 3.1 · 3.2 Low EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-10312 Sqlite 3.49.0 is susceptible to integer overflow through the concat function.
Ubuntu USN Ubuntu USN USN-7528-1 SQLite vulnerabilities
History
Type Values Removed Values Added
First Time appeared Sqlite
Sqlite sqlite
CPEs cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
Vendors & Products Sqlite
Sqlite sqlite
Type Values Removed Values Added
Title sqlite: Integer Overflow in SQLite concat Function sqlite: Integer Overflow in SQLite concat_ws Function
Type Values Removed Values Added
Description Sqlite 3.49.0 is susceptible to integer overflow through the concat function. 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.
References
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV3_1

{'score': 3.2, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L'}

Type Values Removed Values Added
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-190
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Description Sqlite 3.49.0 is susceptible to integer overflow through the concat function.
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 15, 2026, 1:05 AM
Reserved
Mar 11, 2025, 12:00 AM
Status
Modified
Published
Apr 7, 2025, 8:15 PM
Modified
Oct 15, 2026, 2:17 AM
Severity
Moderate
Public date
Apr 7, 2025, 12:00 AM