Description
DO NOT USE THIS CVE RECORD. ConsultIDs: none. Reason: This record was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none.
Published: 2026-07-27
Score: 9.8 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SQLite 3.41 implements a use‑after‑free flaw in the parsing of ORDER BY clauses. The parser frees an ExprList object and then mistakenly accesses its nExpr member, leading to a dangling pointer reference. This undefined behavior causes memory reads that can expose sensitive data and, under specific memory layouts, can trigger arbitrary code execution. The weakness is categorized as CWE‑416.

Affected Systems

Any application embedding SQLite 3.41 and executing untrusted or user‑supplied SQL that contains an ORDER BY clause with a large number of items is vulnerable. The problem is tied to the parser code in expr.c of SQLite 3.41 and does not affect earlier or later builds unless they also retain the same code paths.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity. The EPSS score is not available, and the entry is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is a remote adversary sending a specially crafted SQL statement to the vulnerable application. The conditions for exploitation require a remote or local process that can control the SQL string, and while a denial of service is guaranteed, arbitrary code execution is only possible under particular memory‑layout conditions. Nonetheless, the availability of a remote trigger and the gravity of the outcome warrant immediate attention.

Generated by OpenCVE AI on July 30, 2026 at 02:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest SQLite release (3.42 or newer) that removes the use‑after‑free bug.
  • If an immediate upgrade is impractical, ensure that any ORDER BY clause constructed from user input is first validated to guarantee that the list contains a safe, bounded number of items; reject or sanitize clauses that exceed a sane limit.
  • Add monitoring and alerting for SQLite crashes or abnormal memory access patterns to enable rapid incident response.

Generated by OpenCVE AI on July 30, 2026 at 02:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 31 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

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

cvssV3_1

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


Fri, 31 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Description sqlite 3.41 has a use-after-free (UAF) vulnerability in the ORDER BY clause parsing routine. The affected code first releases the memory of an ExprList object via sqlite3ExprListDelete(), then attempts to access the nExpr member of the already freed object. This dangling pointer access causes invalid memory read operations. By constructing a malicious SQL statement containing an ORDER BY clause with a large number of items, a remote adversary can trigger this vulnerability. Successful exploitation can result in application crash (denial of service), leakage of sensitive memory contents, and under certain memory layout conditions, arbitrary code execution on the affected system. DO NOT USE THIS CVE RECORD. ConsultIDs: none. Reason: This record was withdrawn by its CNA. Further investigation showed that it was not a security issue. Notes: none.

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
Title sqlite: sqlite: Arbitrary code execution via malicious SQL statement
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Important


Mon, 27 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 27 Jul 2026 17:15:00 +0000

Type Values Removed Values Added
First Time appeared Sqlite
Sqlite sqlite
Vendors & Products Sqlite
Sqlite sqlite

Mon, 27 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description sqlite 3.41 has a use-after-free (UAF) vulnerability in the ORDER BY clause parsing routine. The affected code first releases the memory of an ExprList object via sqlite3ExprListDelete(), then attempts to access the nExpr member of the already freed object. This dangling pointer access causes invalid memory read operations. By constructing a malicious SQL statement containing an ORDER BY clause with a large number of items, a remote adversary can trigger this vulnerability. Successful exploitation can result in application crash (denial of service), leakage of sensitive memory contents, and under certain memory layout conditions, arbitrary code execution on the affected system.
References

cve-icon MITRE

Status: REJECTED

Assigner: mitre

Published:

Updated: 2026-07-31T14:34:39.044Z

Reserved: 2026-06-07T00:00:00.000Z

Link: CVE-2026-51304

cve-icon Vulnrichment

Updated:

cve-icon NVD

Status : Rejected

Published: 2026-07-27T16:17:39.500

Modified: 2026-07-31T15:17:42.770

Link: CVE-2026-51304

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-27T00:00:00Z

Links: CVE-2026-51304 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T02:15:03Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference