CVE-2025-3277 — Heap-based Buffer Overflow in Sqlite
Severity
6.9MEDIUMNVD
OSV7.5
EPSS
0.7%
top 26.94%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedApr 14
Latest updateMay 22
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.
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L
Affected Packages4 packages
Patches
🔴Vulnerability Details
4OSV
▶
CVEList
▶
GHSA▶
GHSA-g2ph-wvc2-ph4v: An integer overflow can be triggered in SQLite’s `concat_ws()` function↗2025-04-14
📋Vendor Advisories
4Microsoft▶
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,↗2025-04-08
Debian▶
CVE-2025-3277: sqlite3 - An integer overflow can be triggered in SQLite’s `concat_ws()` function. The res...↗2025