CVE-2026-79752 json
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
published 2026-09-17 52 d ago modified 2026-09-30 39 d ago also GHSA-vjqc-q4mp-2rvf , EUVD-2026-81673
- cvss
- 9.2
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 50%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist cakephp/database 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
- packagist cakephp/cakephp 4.5.12, 4.6.5, 5.1.9, 5.2.14, 5.3.7
- github.com/cakephp/cakephp@3349584 commit
- github.com/cakephp/cakephp@3f4d13e commit
- github.com/cakephp/cakephp@79e1d6b commit
- github.com/cakephp/cakephp@8699d6f commit
- github.com/cakephp/cakephp@ab60871 commit
- github.com/cakephp/cakephp@4730e77 commit
- github.com/cakephp/cakephp#19520 pull request
- github.com/cakephp/cakephp#19528 pull request
- github.com/cakephp/cakephp/releases/tag/4.5.12 release
- github.com/cakephp/cakephp/releases/tag/4.6.5 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 52 d ago
Exploit prediction
0.62% chance of exploitation in the next 30 days, higher than 50% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.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 |
| CNA | 4.0 | 9.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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | cakephp/database | >=3.0.0, <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 |
4.5.12 4.6.5 5.1.9 5.2.14 5.3.7 |
| packagist | cakephp/cakephp | <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 |
4.5.12 4.6.5 5.1.9 5.2.14 5.3.7 |
Affected products
- cakephp cakephp
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/cakephp/cakephp/pull/19520
web
-
github.com
/cakephp/cakephp/pull/19528
web
-
github.com
/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0
web
-
github.com
/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e
web
-
github.com
/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676
web
-
github.com
/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d
web
-
github.com
/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45
web
-
github.com
/cakephp/cakephp/commit/4730e774bd3b9caa90d67af49e27a12033ec3c71
web
-
github.com
/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf
web
-
github.com
/cakephp/cakephp/releases/tag/4.5.12
web
-
github.com
/cakephp/cakephp/releases/tag/4.6.5
web
-
github.com
/cakephp/cakephp/releases/tag/5.1.9
web
-
github.com
/cakephp/cakephp/releases/tag/5.2.14
web
-
github.com
/cakephp/cakephp/releases/tag/5.3.7
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-79752
advisory
-
github.com
/cakephp/cakephp/releases/tag/5.1.8
web
-
github.com
/cakephp/cakephp
package
Sources
- CVE List CVE-2026-79752
- GitHub Advisory GHSA-vjqc-q4mp-2rvf
- NVD CVE-2026-79752
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.