Skip to main content

SQLite CVE-2025-29087

HIGH
Integer Overflow or Wraparound (CWE-190)
2025-04-07 cve@mitre.org
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain ability to run SQL calling concat_ws()
  2. Delivery
    Supply ~2MB+ attacker-controlled separator
  3. Exploit
    Integer overflow undersizes malloc buffer
  4. Execution
    Out-of-bounds heap write during concatenation
  5. Impact
    Process 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 28, 2026 - 18:35 CVSS 3.2

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

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
Analysis Updated
Oct 15, 2026 - 05:19 vuln.today
v2 - CVSS changed
Severity Changed
Oct 15, 2026 - 02:23 NVD
LOW HIGH
CVSS changed
Oct 15, 2026 - 02:23 NVD
3.2 (LOW) 7.5 (HIGH)
CVE Published
Apr 07, 2025 - 20:15 nvd
LOW 3.2

DescriptionNVD

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

Why It Matters

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.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 56% exploitable
Prevalence
Ubiquitous
SQLite is embedded in countless OS, browser, mobile, and application stacks
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Medium

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*

More in Sqlite

View all
CVE-2015-5895 CRITICAL POC
10.0 Sep 18

Multiple unspecified vulnerabilities in SQLite before 3.8.10.2, as used in Apple iOS before 9, have unknown impact and a

CVE-2019-8457 CRITICAL
9.8 May 30

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

CVE-2022-35737 HIGH POC
7.5 Aug 03

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

CVE-2017-10989 CRITICAL
9.8 Jul 07

The getNodeSize function in ext/rtree/rtree.c in SQLite through 3.19.3, as used in GDAL and other products, mishandles u

CVE-2025-6965 HIGH POC
7.2 Jul 15

Memory corruption in SQLite versions before 3.50.2 allows network-based attackers with low privileges to manipulate aggr

CVE-2019-5018 HIGH POC
8.1 May 10

An exploitable use after free vulnerability exists in the window function functionality of Sqlite3 3.26.0. Rated high se

CVE-2025-71316 CRITICAL POC
9.2 Jun 04

Arbitrary DLL loading in SQLite's sqldiff.exe utility on Windows allows attackers to achieve code execution by abusing t

CVE-2026-11822 MEDIUM POC
6.8 Jun 09

Memory corruption in SQLite versions before 3.53.2 enables attackers to crash processes, exhaust memory, or potentially

CVE-2020-13871 HIGH POC
7.5 Jun 06

SQLite 3.32.2 has a use-after-free in resetAccumulator in select.c because the parse tree rewrite for window functions i

CVE-2020-11655 HIGH POC
7.5 Apr 09

SQLite through 3.31.1 allows attackers to cause a denial of service (segmentation fault) via a malformed window-function

CVE-2021-36690 HIGH POC
7.5 Aug 24

A segmentation fault can occur in the sqlite3.exe command-line component of SQLite 3.36.0 via the idxGetTableInfo functi

CVE-2026-87016 HIGH POC
8.1 Sep 09

OAuth and SCIM identity confusion in Open WebUI 0.6.41-0.10.x (SQLite-backed deployments only) allows unauthenticated re

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy