CVE-2026-79752: CakePHP · Multiple methods in FunctionsBuilder vulnerable to SQL injection
Affects cakephp/databaseSource GCVE Database
Not known to be exploited · CVSS 9.2 Critical : upgrade to 5.3.7 as a priority.
Data as of 1 Nov 2026, 22:58 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 5.3.7
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 17 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 1 Nov 2026.
What to do
Upgrade cakephp/database and cakephp/cakephp to 5.3.7.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Packagistcakephp/database | Affected
| Fixed in
|
| Packagistcakephp/cakephp | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Official patches are available in CakePHP versions 4.5.12, 4.6.5, 5.1.9, 5.2.14, and 5.3.7. Users should upgrade to these versions to remediate the vulnerability. As a temporary workaround, do not pass user-controlled data to the $dataType, $part, or $unit parameters of the affected FunctionsBuilder methods.
Description
Multiple methods in CakePHP's FunctionsBuilder component are vulnerable to SQL injection when user-controlled data is passed to specific parameters. The affected methods are cast(), extract(), datePart(), and dateAdd(). This vulnerability allows attackers to inject malicious SQL code via the $dataType, $part, or $unit parameters. Fixed versions have been released across multiple CakePHP versions. Users are advised not to supply user-controlled data to these parameters as a workaround.
References
- github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-79752 (opens in a new tab)
- github.com/cakephp/cakephp/pull/19520 (opens in a new tab)
- github.com/cakephp/cakephp/pull/19528 (opens in a new tab)
- github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0 (opens in a new tab)
- github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e (opens in a new tab)
- github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676 (opens in a new tab)
- github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d (opens in a new tab)
- github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45 (opens in a new tab)
- github.com/cakephp/cakephp (opens in a new tab)
- github.com/cakephp/cakephp/releases/tag/4.5.12 (opens in a new tab)
- github.com/cakephp/cakephp/releases/tag/4.6.5 (opens in a new tab)
- github.com/cakephp/cakephp/releases/tag/5.1.8 (opens in a new tab)
- github.com/cakephp/cakephp/releases/tag/5.1.9 (opens in a new tab)
- github.com/cakephp/cakephp/releases/tag/5.2.14 (opens in a new tab)
- github.com/cakephp/cakephp/releases/tag/5.3.7 (opens in a new tab)
- github.com/cakephp/cakephp/commit/4730e774bd3b9caa90d67af49e27a12033ec3c71 (opens in a new tab)