CakePHP through 5.4.3 SQL Injection via WindowExpression range() and frame()
Affects CakePHP through 5.4.3 when unvalidated user-controlled values reach WindowExpression range() or frame() offsets or directions, or the OVER clause. The fix is backported to the 5.3 and 5.2 branches.
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- How many real-world setups can hit the bug, from the vendor's advisory and CISA data. It does not know your setup.What do these mean? →
- Unclear
- Fix
- Fix or patch referenced
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
CakePHP, a PHP web framework, is affected when applications pass unvalidated user input into the window frame settings (range() and frame()) of its query builder. An attacker could exploit this to inject arbitrary SQL and run it with the database account's privileges, potentially reading, modifying, or deleting data.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original 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.
Timeline
- CVE published
- First seen by cve.now
- Posted on X by cve.now
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- cakephp cakephp
through 5.4.3
References 9
GitHub · cakephp/cakephp
abraxaslabs.tech
Questions about CVE-2026-119418
What does this mean?
CakePHP's WindowExpression range() and frame() methods contain an SQL injection flaw. If an application passes unvalidated user-controlled data into their offsets, directions, or the OVER clause, that data can be injected into SQL queries.Source: github.com
Am I affected, and how do I check?
CakePHP versions through 5.4.3 are affected. The fix was backported to the 5.3 and 5.2 branches. The setup that matters is an application that passes user-controlled values into WindowExpression range() or frame() offsets or directions, or into the OVER clause; check your CakePHP version in composer.lock or with composer show cakephp/cakephp, and check your code for those calls.Source: github.com
What should I do about it?
Upgrade to a CakePHP release that includes the backported fix on your branch, either 5.3 or 5.2. The available facts do not give the exact patched version numbers, so check the advisory for them. Validate or whitelist any user input before it reaches these methods.Source: github.com
Is it being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data