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.
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.
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
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-3277 are published in these products:
Affected Versions
sqlite:- Version < 3.49.1 is affected.
- Before V5.7 is affected.
- Version V3.1.0 and below V3.1.5 is affected.
- Version V3.1.0 and below V3.1.5 is affected.
- Version V3.1.0 and below V3.1.5 is affected.
- Version V3.1.0 and below V3.1.5 is affected.
- Version V3.1.0 and below V3.1.5 is affected.
Exploit Probability
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.