Skip to content
CVE PROGRAM SOURCE RECORD9.2 Critical

CVE-2026-79752

CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

cakephp cakephp

  • < 4.5.12affected
  • >= 4.6.0, < 4.6.5affected
  • >= 5.0.0, < 5.1.9affected
  • >= 5.2.0, < 5.2.14affected
  • >= 5.3.0, < 5.3.7affected

References