CVE-2026-79752
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
9.2
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
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.
- Record
CVE-2026-79752- CVSS 4.0
- 9.2 Critical
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 - Weakness
- CWE-89
- Updated
- 2026-11-02
EUVDEUVD-2026-81673
9.2
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.
- Record
EUVD-2026-81673- CVSS 4.0
- 9.2 Critical
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-vjqc-q4mp-2rvf
9.2
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
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.
- Record
GHSA-vjqc-q4mp-2rvf- CVSS 4.0
- 9.2 Critical
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 - Weakness
- CWE-89
- Updated
- 2026-11-02
NVD
9.2
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.
- Record
CVE-2026-79752- CVSS 4.0
- 9.2 Critical
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 - Weakness
- CWE-89
- Updated
- 2026-11-02
OSV
9.2
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
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.
- Record
CVE-2026-79752- CVSS 4.0
- 9.2 Critical
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 - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVGHSA-vjqc-q4mp-2rvf
9.2
CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
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.
- Record
GHSA-vjqc-q4mp-2rvf- CVSS 4.0
- 9.2 Critical
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 - Weakness
- CWE-89
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-79752
9.2
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.
- Record
UBUNTU-CVE-2026-79752- CVSS 4.0
- 9.2 Critical
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 - Updated
- 2026-11-03
OSVCLSA-2026-1791987574 No score
TuxCare security update for cakephp/cakephp (3 CVEs)
TuxCare rebuilt cakephp/cakephp to address 3 CVEs. Fixed in 5.0.11-p1+tuxcare.
- Record
CLSA-2026-1791987574- Updated
- 2026-11-02
OSVCLSA-2026-1791988278 No score
TuxCare security update for cakephp/cakephp (3 CVEs)
TuxCare rebuilt cakephp/cakephp to address 3 CVEs. Fixed in 4.4.18-p1+tuxcare.
- Record
CLSA-2026-1791988278- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
cakephp/databasePackagist |
4.6.0 up to 4.6.5 | 4.6.5 |
cakephp/databasePackagist |
5.0.0 up to 5.1.9 | 5.1.9 |
cakephp/databasePackagist |
5.2.0 up to 5.2.14 | 5.2.14 |
cakephp/databasePackagist |
5.3.0 up to 5.3.7 | 5.3.7 |
cakephp/cakephpPackagist |
before 4.5.12 | 4.5.12 |
cakephp/cakephpPackagist |
4.6.0 up to 4.6.5 | 4.6.5 |
cakephp/cakephpPackagist |
5.0.0 up to 5.1.9 | 5.1.9 |
cakephp/cakephpPackagist |
5.2.0 up to 5.2.14 | 5.2.14 |
cakephp/cakephpPackagist |
5.3.0 up to 5.3.7 | 5.3.7 |
cakephp/databasePackagist |
3.0.0 up to 4.5.12 | 4.5.12 |
Show 15 moreShow less
| Package | Affected | Fixed |
|---|---|---|
cakephp/cakephpTuxCare:Packagist From an advisory covering 3 CVEs |
5.0.11 up to 5.0.11-p1+tuxcare | 5.0.11-p1+tuxcare |
cakephp/cakephpTuxCare:Packagist From an advisory covering 3 CVEs |
4.4.18 up to 4.4.18-p1+tuxcare | 4.4.18-p1+tuxcare |
cakephp/databasePackagist |
3.0.0 up to 4.5.12, plus listed versions 3.0.13.0.103.0.123.0.133.0.15 Show 45 moreShow less3.0.183.0.23.0.33.0.43.0.53.0.63.0.73.0.83.0.93.1.03.1.0-RC13.1.0-beta3.1.0-beta23.1.13.1.103.1.133.1.23.1.33.1.43.1.53.1.63.1.73.1.83.1.93.10.03.10.0-RC13.10.13.10.33.10.43.10.53.2.03.2.0-RC13.2.13.2.103.2.113.2.123.2.133.2.143.2.23.2.33.2.43.2.53.2.63.2.73.2.8 |
4.5.12 |
cakephp/databasePackagist |
4.6.0 up to 4.6.5, plus listed versions 4.6.14.6.24.6.3 |
4.6.5 |
cakephp/databasePackagist |
5.0.0 up to 5.1.9, plus listed versions 5.0.105.0.115.0.25.0.35.0.4 Show 14 moreShow less5.0.55.0.65.0.75.0.85.0.95.1.05.1.0-RC15.1.0-RC25.1.15.1.25.1.45.1.55.1.65.1.8 |
5.1.9 |
cakephp/databasePackagist |
5.2.0 up to 5.2.14, plus listed versions 5.2.15.2.105.2.115.2.125.2.13 Show 8 moreShow less5.2.25.2.35.2.45.2.55.2.65.2.75.2.85.2.9 |
5.2.14 |
cakephp/databasePackagist |
5.3.0 up to 5.3.7, plus listed versions 5.3.25.3.35.3.45.3.55.3.6 |
5.3.7 |
cakephp/cakephpPackagist |
before 4.5.12, plus listed versions 2.10.02.10.0-RC12.10.12.10.102.10.11 Show 45 moreShow less2.10.122.10.132.10.142.10.152.10.162.10.172.10.182.10.192.10.22.10.202.10.212.10.222.10.232.10.242.10.32.10.42.10.52.10.62.10.72.10.82.10.92.4.102.4.52.4.62.4.72.4.82.4.92.5.02.5.0-RC12.5.0-RC22.5.0-beta2.5.12.5.22.5.32.5.42.5.52.5.62.5.72.5.82.5.92.6.02.6.0-RC12.6.0-beta2.6.12.6.10 |
4.5.12 |
cakephp/cakephpPackagist |
4.6.0 up to 4.6.5, plus listed versions 4.6.14.6.24.6.34.6.4 |
4.6.5 |
cakephp/cakephpPackagist |
5.0.0 up to 5.1.9, plus listed versions 5.0.15.0.105.0.115.0.25.0.3 Show 16 moreShow less5.0.45.0.55.0.65.0.75.0.85.0.95.1.05.1.0-RC15.1.0-RC25.1.15.1.25.1.45.1.55.1.65.1.75.1.8 |
5.1.9 |
cakephp/cakephpPackagist |
5.2.0 up to 5.2.14, plus listed versions 5.2.15.2.105.2.115.2.125.2.13 Show 8 moreShow less5.2.25.2.35.2.45.2.55.2.65.2.75.2.85.2.9 |
5.2.14 |
cakephp/cakephpPackagist |
5.3.0 up to 5.3.7, plus listed versions 5.3.15.3.25.3.35.3.45.3.55.3.6 |
5.3.7 |
cakephpUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 2.7.2-12.8.0-12.8.0-1ubuntu0.1~esm1 |
None known |
cakephpUbuntu:20.04:LTS |
All versions, plus listed versions 2.10.11-2 |
None known |
cakephpUbuntu:22.04:LTS |
All versions, plus listed versions 2.10.11-2.12.10.24-1 |
None known |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | abraxas/CVE-2026-79752 | 2026-09-19 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-79752 is a critical vulnerability (CVSS 9.2) in Cakephp, published September 17, 2026. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.62%, the 50th percentile. Fixed in cakephp/database 4.6.5.
References
github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf
github.com/cakephp/cakephp/pull/19520
github.com/cakephp/cakephp/pull/19528
github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0
github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e
github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676
Show 15 moreShow less
github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d
github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45
github.com/cakephp/cakephp/releases/tag/4.5.12
github.com/cakephp/cakephp/releases/tag/4.6.5
github.com/cakephp/cakephp/releases/tag/5.1.9
github.com/cakephp/cakephp/releases/tag/5.2.14
github.com/cakephp/cakephp/releases/tag/5.3.7
nvd.nist.gov/vuln/detail/CVE-2026-79752
github.com/cakephp/cakephp/releases/tag/5.1.8
github.com/cakephp/cakephp/commit/4730e774bd3b9caa90d67af49e27a12033ec3c71
github.com/advisories/GHSA-vjqc-q4mp-2rvf
github.com/CVEProject/cvelistV5/tree/main/cves/2026/79xxx/CVE-2026-79752.json
github.com/cakephp/cakephp
ubuntu.com/security/CVE-2026-79752
cve.org/CVERecord?id=CVE-2026-79752
Left out here: 560 versions. The JSON record has them.