CVE-2025-3277

Severity CVSS v4.0:
MEDIUM
Type:
CWE-122 Heap-based Buffer Overflow
Publication date:
14/04/2025
Last modified:
18/08/2025

Description

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.

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:* 3.44.0 (including) 3.49.1 (excluding)


References to Advisories, Solutions, and Tools