CVE-2026-119418

CakePHP through 5.4.3 SQL Injection via WindowExpression range() and frame()

Published Oct 30, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
Description
CakePHP through 5.4.3 contains an sql injection vulnerability that allows attackers to inject SQL by supplying unvalidated frame offsets and directions to WindowExpression::range() and frame(). Attackers can pass crafted values through applications forwarding user input into the OVER clause to execute SQL with the database connection's privileges.

Analysis

AI-generated

Technical impact

CakePHP through version 5.4.3 contains a SQL injection flaw that allows an attacker to embed arbitrary SQL statements by providing unvalidated frame offsets and directions to the WindowExpression::range() and frame() methods. When an application forwards user input into the OVER clause of a query, the vulnerability permits execution of any SQL command with the privileges of the database connection, enabling data theft, modification, or denial of service within the database.

Affected Systems

The affected product is CakePHP, with all releases up to and including 5.4.3. Sites that rely on these versions and employ the WindowExpression::range() or frame() APIs in code paths that accept user control are vulnerable.

Risk and Exploitability

The CVSS score of 9.2 indicates a high severity, signifying a complete ability to impact confidentiality, integrity, and availability of the database. The EPSS score is not available, but the flaw is exploitable via standard web user input that reaches the affected methods, making a near‑future attack realistic. The vulnerability is not listed in CISA KEV, yet the lack of mitigation and the obvious attack surface raise the risk of exploitation by a motivated threat actor.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch or upgrade to a version that includes the fixed WindowExpression code
  • Sanitize or restrict any user‑supplied frame offset and direction values before they are passed to WindowExpression::range() or frame()
  • If a patch is not immediately available, configure database connections to run with the least privileges necessary to limit the impact of any injected command

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description CakePHP through 5.4.3 contains an sql injection vulnerability that allows attackers to inject SQL by supplying unvalidated frame offsets and directions to WindowExpression::range() and frame(). Attackers can pass crafted values through applications forwarding user input into the OVER clause to execute SQL with the database connection's privileges.
Title CakePHP through 5.4.3 SQL Injection via WindowExpression range() and frame()
First Time appeared Cakephp
Cakephp cakephp
Weaknesses CWE-89
CPEs cpe:2.3:a:cakephp:cakephp:*:*:*:*:*:*:*:*
Vendors & Products Cakephp
Cakephp cakephp
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 30, 2026, 4:04 PM
Reserved
Oct 30, 2026, 2:41 AM
Status
Deferred
Published
Oct 30, 2026, 12:16 PM
Modified
Oct 30, 2026, 7:07 PM