Intel

AIKIDO-2026-102920

cakephp/cakephp is vulnerable to SQL Injection

SQL InjectionCVE-2026-77635 Published 3 days ago

81

High Risk

This Affects:

PHPcakephp/cakephp
5.1.0 - 5.1.9
Fixed in 5.1.10
5.2.0 - 5.2.14
Fixed in 5.2.15
5.3.0 - 5.3.6
Fixed in 5.3.7
Are you affected? Scan for Free

TL;DR

The FunctionsBuilder::jsonValue() method builds PostgreSQL JSON path expressions by inserting the $jsonPath argument into the generated SQL instead of binding or quoting it. This allows manipulation of the executed statement against PostgreSQL connections, exposing or altering database contents. The fix stops interpolating the path argument and treats it as a bound value so injection-like paths are rejected.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use the PostgreSQL driver and pass externally controlled data to the $jsonPath argument of FunctionsBuilder::jsonValue().

Background info

cakephp/cakephp is vulnerable to SQL Injection in versions 5.1.0 - 5.1.9, 5.2.0 - 5.2.14 and 5.3.0 - 5.3.6.

How to fix this

Upgrade the cakephp/cakephp and/or the cakephp/database library to the patch version.