Description
SQLite before 3.54.0 contains a stack exhaustion vulnerability that allows attackers to bypass the SQLITE_LIMIT_EXPR_DEPTH limit by chaining COLLATE postfix operators. Attackers can supply roughly 175,000 chained COLLATE operators in SQL or an untrusted database view to trigger unbounded recursion in sqlite3WalkExprNN() and crash the process.
Published: 2026-10-30
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service via stack exhaustion caused by unbounded recursion
Action: Immediate Patch
AI Analysis

Impact

SQLite versions prior to 3.54.0 can exhaust the process stack by allowing a user to construct a chain of COLLATE postfix operators in a SQL statement or an untrusted database view. The chained operators trigger unbounded recursion in sqlite3WalkExprNN(), bypassing the SQLITE_LIMIT_EXPR_DEPTH limit and resulting in a process crash. This flaw gives an attacker the ability to cause a denial of service on any system that loads the vulnerable library and processes untrusted SQL input.

Affected Systems

The vulnerability affects all installations of SQLite that use a version earlier than 3.54.0. Any application or environment that loads the legacy library and accepts user‑supplied SQL statements, including web, mobile, or embedded databases, is potentially impacted.

Risk and Exploitability

The CVSS v3 score of 6.8 indicates a medium severity risk. Since the EPSS score is not available, the current public exploit probability is unknown, and the vulnerability is not listed in the CISA KEV catalog. The flaw is exploitable by feeding a long chain of COLLATE operators through SQL injection or by creating a malicious database view that contains the chain. An attacker therefore has a realistic path to crash the database process and disrupt availability, provided they control or influence the SQL sent to the database.

Generated by OpenCVE AI on October 30, 2026 at 12:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the SQLite library to version 3.54.0 or later, ensuring the patch is applied in all environments.
  • Validate or sanitize all user‑supplied SQL or view definitions to prevent the construction of excessive COLLATE chains, or remove untrusted view definitions entirely.
  • Monitor database processes for stack consumption and consider configuring SQLITE_LIMIT_EXPR_DEPTH to a conservative value to contain potential recursion before it crashes the process.

Generated by OpenCVE AI on October 30, 2026 at 12:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 30 Oct 2026 11:45:00 +0000

Type Values Removed Values Added
Description SQLite before 3.54.0 contains a stack exhaustion vulnerability that allows attackers to bypass the SQLITE_LIMIT_EXPR_DEPTH limit by chaining COLLATE postfix operators. Attackers can supply roughly 175,000 chained COLLATE operators in SQL or an untrusted database view to trigger unbounded recursion in sqlite3WalkExprNN() and crash the process.
Title SQLite before 3.54.0 Stack Exhaustion via COLLATE Operator Chain
First Time appeared Sqlite
Sqlite sqlite
Weaknesses CWE-674
CPEs cpe:2.3:a:sqlite:sqlite:*:*:*:*:*:*:*:*
Vendors & Products Sqlite
Sqlite sqlite
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-30T11:30:41.213Z

Reserved: 2026-10-30T00:57:05.506Z

Link: CVE-2026-119376

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-30T12:16:36.490

Modified: 2026-10-30T12:16:36.490

Link: CVE-2026-119376

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-30T13:00:14Z

Weaknesses