CakePHP: SQL injection in WindowExpression (CVE-2026-119418)
CakePHP versions through 5.4.3 contain an SQL injection vulnerability in the WindowExpression::range() and frame() methods that allows attackers to execute arbitrary SQL via crafted input passed to the OVER clause.
CVE search metadata
CVE search record: CVE-2026-119418. Severity: high. CVSS: 8.1. KEV: no. Product: CakePHP (<= 5.4.3). Brief: CakePHP: SQL injection in WindowExpression (CVE-2026-119418). Brief link: https://feed.craftedsignal.io/briefs/2026-10-cakephp-sql-injection/
Triage facts
Revision 1- Applicability
- CakePHP (<= 5.4.3)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 1 public source
- Freshness
- Revision 1Oct 30, 13:29 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A1Likely
CakePHP versions through 5.4.3 contain an SQL injection vulnerability arising from the improper validation of frame offsets and directions within the WindowExpression::range() and frame() methods. Applications that pass user-supplied input into these methods, which are subsequently rendered in the OVER clause of a SQL query, are susceptible to exploitation. An attacker can leverage this flaw to execute unauthorized SQL statements using the privileges of the database connection.
Impact
Successful exploitation allows for unauthorized SQL execution, which can lead to data exfiltration, database modification, or denial of service depending on the application database configuration and privileges.
Recommendation
- Inventory all applications utilizing CakePHP versions 5.4.3 or older.
- Review custom code for any usage of
WindowExpression::range()orframe()that incorporates untrusted user input. - Apply patches or upgrade to a version of CakePHP that addresses this vulnerability once available.
- Implement strict input validation and sanitization for all parameters passed to framework query building methods.
Immediate actions
Identify CakePHP implementations <= 5.4.3 and prepare for update
Threat Hunt
Search application logs for SQL injection patterns involving OVER clauses or unexpected characters in windowing function parameters
Data: Application request logs, Database query logs
Mitigations
Upgrade CakePHP to a patched version once released
CVE-2026-119418