---
id: "CVE-2026-119418"
kind: "vulnerability"
aliases: ["CVE-2026-119418"]
title: "CakePHP: unvalidated window frame values let attackers inject SQL"
severity: "critical"
cvss: 9.2
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["cakephp", "php", "runtime", "sql", "web-apps"]
not_affected_if: ["cakephp-above-5.4.3", "no-user-input-in-window-frames"]
published_at: "2026-10-30T12:16:38+00:00"
first_seen_at: "2026-10-30T12:30:25+00:00"
updated_at: "2026-10-30T12:31:55+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119418", "first_seen_at": "2026-10-30T12:30:25+00:00"}]
---

# CakePHP: unvalidated window frame values let attackers inject SQL

CakePHP through 5.4.3 does not validate frame offsets and directions passed to WindowExpression::range() and frame(). An attacker who can pass crafted values through user input into the OVER clause can run SQL with the database connection's privileges.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the CakePHP version in `composer.lock` or with `bin/cake --version`.
- Search application code for calls to `WindowExpression::range()` or `frame()` that take values from user input.

## Fix

- CakePHP: fixed version not stated in the sources; move to a release later than `5.4.3`.

## Timeline

- 2026-10-30T12:30:25+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119418

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
