SQLite concat_ws() Integer Overflow Heap Buffer Overflow (CVE-2025-3277)
CVE-2025-3277 Published on April 14, 2025

An integer overflow can be triggered in SQLites `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.

NVD

Vulnerability Analysis

CVE-2025-3277 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity and availability.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE

Weakness Type

Heap-based Buffer Overflow

A heap overflow condition is a buffer overflow, where the buffer that can be overwritten is allocated in the heap portion of memory, generally meaning that the buffer was allocated using a routine such as malloc().


Products Associated with CVE-2025-3277

stack.watch emails you whenever new vulnerabilities are published in Canonical Ubuntu Linux or SQLite. Just hit a watch button to start following.

 
 

Affected Versions

sqlite Version < 3.49.1 is affected by CVE-2025-3277

Exploit Probability

EPSS
0.77%
Percentile
52.25%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.