CVE-2026-79752

Critical

Description

CakePHP is a rapid development framework for PHP. Prior to 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7, FunctionsBuilder::cast, FunctionsBuilder::extract, FunctionsBuilder::datePart, and FunctionsBuilder::dateAdd in src/Database/FunctionsBuilder.php accept user-controlled dataType, part, or unit values and incorporate them into generated SQL as unescaped structural fragments. An application that passes untrusted input to these parameters can permit SQL injection with confidentiality, integrity, and availability impact according to the database connection's privileges. This issue is fixed in versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7.

SeverityCritical
CVSS9.2
Exploit probability—
ProductCakephp/database
PublishedSep 17, 2026
First seenSep 17, 2026
Weakness typeCWE-89SQL injection

How to fix

Update
  • cakephp/database4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7 or later
  • cakephp/cakephp4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7 or later

Affected products

ProductAffected versionsFixed in
cakephp/databasePackagist3.0.0 ≤ v < 4.5.12, 4.6.0 ≤ v < 4.6.5, 5.0.0 ≤ v < 5.1.9, 5.2.0 ≤ v < 5.2.14, 5.3.0 ≤ v < 5.3.74.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
cakephp/cakephpPackagistv < 4.5.12, 4.6.0 ≤ v < 4.6.5, 5.0.0 ≤ v < 5.1.9, 5.2.0 ≤ v < 5.2.14, 5.3.0 ≤ v < 5.3.74.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.