SQL Injection in Cakephp

CVE-2026-77635

CakePHP is a rapid development framework for PHP. Prior to versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.

Vulnerability class: SQL Injection

Affected products

  • Cakephp — versions >= 5.1.0, < 5.1.10, >= 5.2.0, < 5.2.15, >= 5.3.0, < 5.3.7
  • Cakephp Cakephp/database — versions >= 5.1.0, < 5.1.10, >= 5.2.0, < 5.2.15, >= 5.3.0, < 5.3.7

Weakness classification (CWE)

References