Security Digest · Vulnerability record

CVE-2026-79752: CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection

CakePHP is a rapid development framework for PHP.

CVSS 9.2 Critical EPSS 0.6% · p49

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
  • EPSS 0.6%, percentile 49: FIRST’s model estimates a 0.6% chance of exploitation activity in the next 30 days, higher than 49% of all scored CVEs (low). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes cakephp/database (Composer (PHP)) >= 4.6.0, < 4.6.5, fixed in 4.6.5; cakephp/database (Composer (PHP)) >= 5.0.0, < 5.1.9, fixed in 5.1.9; cakephp/database (Composer (PHP)) >= 5.2.0, < 5.2.14, fixed in 5.2.14; cakephp/database (Composer (PHP)) >= 5.3.0, < 5.3.7, fixed in 5.3.7. Check your lockfile, including transitive dependencies.

What it is

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.

From the GitHub advisory

Impact The FunctionsBuilder::cast($field, $dataType), extract($part, $expr), datePart($part, $expr), dateAdd($expr, $value, $unit) methods are vulnerable to SQL injection if user controlled data is supplied to the ($dataType / $part / $unit) parameters.

Patches 5.3.7, 5.2.14, 5.1.9, 4.6.5, 4.5.12 contain fixes

Workarounds Don't provide user controlled data to these functions/parameters.

Weakness type: CWE-89.

Product: cakephp/database (Composer (PHP)) · Assigned by: GitHub_M · Published: 2026-09-17

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
Composer (PHP)cakephp/database>= 4.6.0, < 4.6.54.6.5
Composer (PHP)cakephp/database>= 5.0.0, < 5.1.95.1.9
Composer (PHP)cakephp/database>= 5.2.0, < 5.2.145.2.14
Composer (PHP)cakephp/database>= 5.3.0, < 5.3.75.3.7
Composer (PHP)cakephp/cakephp< 4.5.124.5.12
Composer (PHP)cakephp/cakephp>= 4.6.0, < 4.6.54.6.5
Composer (PHP)cakephp/cakephp>= 5.0.0, < 5.1.95.1.9
Composer (PHP)cakephp/cakephp>= 5.2.0, < 5.2.145.2.14
Composer (PHP)cakephp/cakephp>= 5.3.0, < 5.3.75.3.7
Composer (PHP)cakephp/database>= 3.0.0, < 4.5.124.5.12
VendorProductAffected versions (per CVE record)
cakephpcakephp< 4.5.12, >= 4.6.0, < 4.6.5, >= 5.0.0, < 5.1.9, >= 5.2.0, < 5.2.14, >= 5.3.0, < 5.3.7

Severity scores

Scored byCVSSScoreVector
GitHub_M4.09.2 CriticalCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHub4.09.2 CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Attack requirements: present (depends on deployment conditions)
  • Privileges required: none (no login)
  • User interaction: none

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation none, automatable no, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 0.62% probability of exploitation activity in the next 30 days; percentile 49.

Timeline

  • — CVE record last updated
  • — CVE record published by GitHub_M
  • — GitHub-reviewed advisory GHSA-vjqc-q4mp-2rvf published (critical)

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-vjqc-q4mp-2rvf github.com
  2. CVE.org record CVE-2026-79752 cve.org
  3. NVD entry CVE-2026-79752 nvd.nist.gov

Other references from the CVE record and advisory

  1. github.com github.com
  2. github.com github.com
  3. github.com github.com
  4. github.com github.com
  5. github.com github.com
  6. github.com github.com
  7. github.com github.com
  8. github.com github.com
  9. github.com github.com
  10. github.com github.com
  11. github.com github.com
  12. github.com github.com
  13. github.com github.com
  14. github.com github.com
  15. github.com github.com

Critical Composer (PHP) advisories · Today’s Security Digest