CVE-2025-29087
SQLite vulnerability analysis and mitigation

Overview

In SQLite versions 3.44.0 through 3.49.0 before 3.49.1, a vulnerability was discovered in the concat_ws() SQL function (CVE-2025-29087). The vulnerability was identified on April 7, 2025, affecting SQLite database software. The issue involves an integer overflow vulnerability that can lead to memory corruption when processing certain SQL queries (NVD, CVE).

Technical details

The vulnerability occurs in the concat_ws() SQL function where memory can be written beyond the end of a malloc-allocated buffer. When the separator argument is attacker-controlled and contains a large string (2MB or more), an integer overflow occurs during the calculation of the result buffer size. This causes malloc to allocate insufficient memory for the operation. The vulnerability has been assigned a CVSS v3.1 base score of 3.2 (LOW) with the vector string CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L (NVD).

Impact

The primary impact of this vulnerability is the potential for memory corruption through buffer overflow, which could lead to application crashes and denial of service conditions. The vulnerability requires the attacker to have the ability to control the separator argument in the concatws() function with a large string ([SQLite Release](https://sqlite.org/releaselog/349_1.html)).

Mitigation and workarounds

The vulnerability has been fixed in SQLite version 3.49.1, released on February 18, 2025. Users are advised to upgrade to this version or later to address the issue. The fix specifically addresses the integer overflow calculation in the concatws() function ([SQLite Release](https://sqlite.org/releaselog/349_1.html)).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management