IT SBIT Services
Schneeberger
DEEN
CVE tracker

CakePHP: SQL injection via WindowExpression range() and frame()

CVE-2026-119418Critical 9.2

← All vulnerabilities

Summary

CakePHP through 5.4.3 does not validate frame offsets and directions passed to WindowExpression::range() and frame(). If an application forwards unvalidated user input into the OVER clause, an attacker can inject SQL and run it with the privileges of the database connection. Default CakePHP installations do not expose this method to user input by themselves.

Affected

  • CakePHP through 5.4.3 (cakephp/cakephp and cakephp/database)
  • Whether 4.x releases are affected is unknown.

Fixed in

Unknown. No fixed version is confirmed in the sources reviewed. Do not treat CakePHP 5.1.10, 5.2.15 or 5.3.7 as fixes; they belong to CVE-2026-77635.

Workaround

  • Do not pass untrusted input into range() or frame().
  • If this is not possible, allowlist the frame type (RANGE, ROWS, GROUPS) and the direction (PRECEDING, FOLLOWING) and validate offsets strictly.
  • Limit the privileges of the database account.

Exploitation

  • A public proof of concept exists for a lab setup.
  • No confirmed exploitation in the wild.
  • CISA SSVC: Exploitation none, Automatable no, Technical Impact total.
  • NVD status is Deferred.

Our recommendation

  • Inventory all CakePHP installations, including 4.x, using composer.lock files.
  • Search custom code for calls to range() or frame() that receive request data and remove or validate this input.
  • Apply the workaround now and restrict database account privileges.
  • Upgrade to the first fixed 5.x release once the vendor confirms it; plan migration away from 4.x.
  • Monitor the NVD entry and the vendor advisory for updates.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 31 Oct 2026, 03:53.

Original description (NVD)

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.

NVD references (9)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.