CVE-2025-3277 Details
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.
A heap buffer overflow vulnerability has been identified in SQLite's concat_ws() function. This issue arises from an integer overflow that can be triggered by using a large separator value with multiple arguments. The overflowed integer, which is truncated, is improperly used to allocate a buffer. When SQLite writes the resulting string to this buffer, it applies the original, untruncated size, leading to a heap buffer overflow of approximately 4GB. This vulnerability can result in arbitrary code execution.
Users are advised to update to the latest version of SQLite, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 14, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://cert-portal.siemens.com/productcert/html/ssa-398330.html | siemens-SADP | |
| https://cert-portal.siemens.com/productcert/html/ssa-994087.html | siemens-SADP | |
| https://sqlite.org/src/info/498e3f1cf57f164f | [email protected] | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-190 | Integer Overflow or Wraparound | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| sqlite sqlite | >= 3.44.0, < 3.49.1 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Oct 15, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Aug 18, 2025 | Reanalysis | [email protected] |
| Aug 1, 2025 | Initial Analysis | [email protected] |
| Apr 14, 2025 | New CVE Received | [email protected] |