EXPOSURES › CVE-2025-3277
CVE-2025-3277
CRITICALSQLite's concat_ws() function allows a massive 4GB heap buffer overflow via integer overflow, enabling arbitrary code execution.
This critical vulnerability in SQLite's concat_ws() function allows attackers to trigger a heap buffer overflow of approximately 4GB, leading to arbitrary code execution. DIB organizations must immediately patch SQLite libraries to prevent remote code execution and potential system compromise. The flaw is not zero-day but is actively exploitable and represents a significant security risk for any system relying on SQLite.
Shame score — A critical integer overflow flaw enabling a 4GB heap buffer overflow and arbitrary code execution in a foundational database library is a severe, avoidable security failure.
▸ RECOMMENDED ACTION Remote code execution — patch the affected products on priority.
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.