Intel

AIKIDO-2026-855333

cakephp/cakephp is vulnerable to SQL Injection

CVE-2026-119418Published Nov 2, 2026
November 2, 2026

92

CVE Score

Critical

SQL Injection

Are you affected? Scan for Free

TL;DR

Before the fix, WindowExpression::range() and frame() accepted caller-supplied string offsets and frame directions without validation, and the generated OVER clause spliced those strings raw into the frame SQL, so a client who can reach application code that forwards request input into a window frame could inject SQL that runs with the database connection's privileges. Only applications that build window frames from dynamic request values are exposed. The fix rejects offsets and directions that are not simple alphanumeric strings by calling QueryExpression::ensureSimpleString().

How do I fix this?

Upgrade the cakephp/cakephp package to a fixed release on your branch: 5.2.16, 5.3.8, 5.4.4.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and pass request input as string offsets or directions into WindowExpression::range() or frame() without validating it.

Versions

4.1.0 - 5.2.15

Fixed in 5.2.16

5.3.0 - 5.3.7

Fixed in 5.3.8

5.4.0 - 5.4.3

Fixed in 5.4.4

Background info

cakephp/cakephp is vulnerable to SQL Injection in versions 4.1.0 - 5.2.15, 5.3.0 - 5.3.7 and 5.4.0 - 5.4.3.

Links

Other

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea