SQLite
CVE-2025-29087
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain ability to run SQL calling concat_ws()
-
DeliverySupply ~2MB+ attacker-controlled separator
-
ExploitInteger overflow undersizes malloc buffer
-
ExecutionOut-of-bounds heap write during concatenation
-
ImpactProcess crash / denial of service
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the attacker to cause execution of an SQL statement that calls the concat_ws() function with an attacker-controlled separator argument whose length is roughly 2MB or larger, on SQLite versions 3.44.0 through 3.49.0 (fixed in 3.49.1). LIMITING FACTORS: SQLite is an in-process library, so this is only reachable where an application routes untrusted data into concat_ws() (e.g., SQL injection, a user-exposed query/report builder, or direct database access); default embedded uses that never pass untrusted separators to concat_ws() are not exposed. Impact is limited to availability (crash/DoS) per the CVSS vector - no confirmed confidentiality or integrity impact. Not applicable to SQLite builds at or above 3.49.1 or before 3.44.0. |
| Impact | Signals point to a moderate, availability-only issue rather than a top-tier emergency. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) yields 7.5 driven solely by A:H, with C:N/I:N - this is a denial-of-service / memory-corruption crash, not a confidentiality or integrity breach, which is consistent with CWE-190 (integer overflow leading to undersized malloc and an out-of-bounds heap write). EPSS is low (0.22%, 44th percentile) and the CVE is NOT in CISA KEV, so there is no evidence of active or widespread exploitation. The NVD references include a researcher gist (ylwango613) that appears to be a PoC/trigger write-up, but its contents were not independently verified in this analysis. A key tension: the CVSS claims PR:N/AV:N (remote, unauthenticated), yet the actual precondition is the ability to execute an SQL statement calling concat_ws() with an attacker-controlled ~2MB+ separator. SQLite is an embedded library, not a network service, so 'network/unauthenticated' only holds where an application exposes concat_ws() to untrusted input (e.g., via SQL injection or a query builder) - verify real exposure per deployment rather than treating 7.5 as universally remote-unauth. Net: patch-worthy given SQLite's ubiquity, but prioritize applications that pass untrusted data into concat_ws(); it is a high-CVSS-but-conditional-reach issue, not a drop-everything RCE. |
| Exploit ScenarioDerived | An application builds SQL that calls concat_ws() with a separator value derived from untrusted input (or an attacker has SQL-injection/query access). The attacker supplies a very large separator string (≈2MB or more), triggering an integer overflow in the result-buffer size calculation so malloc under-allocates, and the subsequent write corrupts the heap and crashes the process (denial of service). A researcher gist referenced by NVD appears to document the trigger, though its exact PoC contents were not confirmed here. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 15, 2026
An integer overflow in SQLite's concat_ws() SQL function (CVE-2025-29087) causes the result-buffer size calculation to under-allocate memory, so a separator argument of roughly 2MB or more can drive a heap buffer overflow write past the end of a malloc-allocated buffer, crashing or otherwise denying availability of the process running SQLite. The flaw affects versions 3.44.0 through 3.49.0 and is fixed in 3.49.1; the assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) shows an unauthenticated remote-reachable trigger with availability-only impact and no confirmed confidentiality or integrity effect. Reachability is conditional: because SQLite is an in-process library, an attacker must get a crafted large separator into a concat_ws() call - via SQL injection, a user-facing query or report builder, or direct database access - while embedded deployments that never pass untrusted separators into concat_ws() are not exposed. EPSS is low at 0.22% (44th percentile), there is no CISA KEV entry, and no public exploit code was identified at time of analysis, so this rates as a moderate availability-only issue rather than a top-tier emergency.
Earlier versions of this analysis (1)
In SQLite 3.44.0 through 3.49.0 before 3.49.1, the concat_ws() SQL function can cause memory to be written beyond the end of a malloc-allocated buffer. Rated low severity (CVSS 3.2), this vulnerability is no authentication required. No vendor patch available.
RemediationAI
The primary fix is to upgrade to SQLite 3.49.1 or later - vendor-released patch: 3.49.1 - and, for embedded or repackaged deployments, to update every product and application that statically or dynamically links the vulnerable library, tracking the vendor's own advisory (for example the Siemens advisories at https://cert-portal.siemens.com/productcert/html/ssa-398330.html and https://cert-portal.siemens.com/productcert/html/ssa-994087.html) until a product-specific fixed version is published; the upstream release notes and CVE list are at https://sqlite.org/releaselog/3_49_1.html and https://www.sqlite.org/cves.html. Where immediate upgrading is not possible, the most effective compensating control is to eliminate the trigger condition: do not allow untrusted data to reach the separator argument of concat_ws(), which in practice means enforcing strict input-length validation or rejection of oversized separator values and using parameterized statements instead of string-built SQL so that SQL injection cannot be used to introduce a large separator - the trade-off is that legitimate large-separator use cases (unusual in practice) will fail, and validation must be applied at every layer that can reach the database. As a secondary hardening measure, bound the maximum string size accepted by the connection (SQLITE_LIMIT_LENGTH / equivalent driver limit) so oversized concatenation results are rejected before the overflow path is reached, accepting that this also caps all legitimate large string and BLOB handling in that application; additionally, isolate or restart-on-crash wrappers around SQLite-using processes reduce the blast radius of the availability-only crash, though they do not remove the underlying bug. Note that authentication requirements are not confirmed from the available data beyond the supplied CVSS vector, so access restrictions at the application boundary should be reviewed against the specific deployment rather than assumed.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-190 (Integer Overflow or Wraparound) inside SQLite's string-processing code. concat_ws() is a variadic SQL scalar function that joins its arguments with a caller-supplied separator; its implementation computes the total byte length of the concatenated result before allocating a buffer. When the separator is a very large string (roughly 2MB or more according to the description), that length arithmetic overflows the integer used to size the allocation, so malloc() reserves less memory than the concatenation subsequently writes, producing a heap out-of-bounds write. The vulnerable code path was introduced with the 3.44.0 release line, and the CPE cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:* confirms the affected component is the upstream SQLite library itself - which means the exposure surface is not a network service but every application, driver, ORM, or appliance that embeds SQLite and forwards attacker-influenced data into concat_ws(). The Siemens product advisories (ssa-398330, ssa-994087) in the references illustrate this embedder pattern: the vulnerable library ships inside larger products, so downstream patches must be tracked separately. The CVSS vector AV:N/PR:N/UI:N with C:N/I:N/A:H indicates the trigger is considered remotely reachable without prior authentication in a suitable application context, but the impact is confined to a crash or denial of service rather than memory disclosure or code execution, and the scope is unchanged (S:U).
Know when Sqlite gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Kept A:H-only (crash/DoS) with AC:L since a large separator is trivial to supply; AV:N/PR:N retained to match the library's typical SQL-exposed reach, though real exploitation requires concat_ws() access.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
In SQLite 3.44.0 through 3.49.0 before 3.49.1, the concat_ws() SQL function can cause memory to be written beyond the end of a malloc-allocated buffer. If the separator argument is attacker-controlled and has a large string (e.g., 2MB or more), an integer overflow occurs in calculating the size of the result buffer, and thus malloc may not allocate enough memory.
Executive ViewAI
SQLite versions 3.44.0 through 3.49.0 contain a high-severity availability flaw in the concat_ws() function that can crash processes when untrusted SQL or query inputs supply an oversized separator, disrupting applications and services that embed the library. Organizations using affected SQLite builds in internet-facing, reporting, or database-backed workloads should care because a successful denial-of-service event could interrupt business operations, though no public exploit identified at time of analysis and there is no confirmed confidentiality or integrity impact.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Affected Products (CPE)NVD
Multiple unspecified vulnerabilities in SQLite before 3.8.10.2, as used in Apple iOS before 9, have unknown impact and a
SQLite3 from 3.6.0 to and including 3.27.2 is vulnerable to heap out-of-bound read in the rtreenode() function when hand
SQLite 1.0.12 through 3.39.x before 3.39.2 sometimes allows an array-bounds overflow if billions of bytes are used in a
The getNodeSize function in ext/rtree/rtree.c in SQLite through 3.19.3, as used in GDAL and other products, mishandles u
Memory corruption in SQLite versions before 3.50.2 allows network-based attackers with low privileges to manipulate aggr
An exploitable use after free vulnerability exists in the window function functionality of Sqlite3 3.26.0. Rated high se
Arbitrary DLL loading in SQLite's sqldiff.exe utility on Windows allows attackers to achieve code execution by abusing t
Memory corruption in SQLite versions before 3.53.2 enables attackers to crash processes, exhaust memory, or potentially
SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions i
SQLite through 3.31.1 allows attackers to cause a denial of service (segmentation fault) via a malformed window-function
A segmentation fault can occur in the sqlite3.exe command-line component of SQLite 3.36.0 via the idxGetTableInfo functi
OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re
NVD
CVE.org
EPSS
GitHub
Exploit-DB