Vulnerability · Published Sep 17, 2026 · Assigned by GitHub_M
CVE-2026-79752CakePHP: Multiple methods in FunctionsBuilder vulnerable to SQL injection
Critical 9.2
In plain English
A critical-severity SQL injection in cakephp from cakephp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 50% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | cakephp/cakephp | 5.3.7 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/cakephp | 4.5.12 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/cakephp | 4.6.5 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/cakephp | 5.1.9 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/cakephp | 5.2.14 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/database | 5.3.7 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/database | 4.5.12 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/database | 4.6.5 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/database | 5.1.9 | GHSA-vjqc-q4mp-2rvf |
| Packagist | cakephp/database | 5.2.14 | GHSA-vjqc-q4mp-2rvf |
| Ubuntu:22.04:LTS | cakephp | no fix listed | UBUNTU-CVE-2026-79752 |
Affected products (as reported)
Weakness: CWE-89 · Vector: 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
References
- https://github.com/cakephp/cakephp/security/advisories/GHSA-vjqc-q4mp-2rvf x_refsource_CONFIRM
- https://github.com/cakephp/cakephp/pull/19520 x_refsource_MISC
- https://github.com/cakephp/cakephp/pull/19528 x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/3349584ca3a891afaff2dbc324d6b1c09fb880f0 x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/3f4d13ea4280067f3381ecf935a8bef5b7cdcc2e x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/79e1d6bc6f3a50fa01805579076a02c77370c676 x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/8699d6f38e25fe46fcc24f2b698809948e71ad7d x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/ab608711674ac662af7315c5cdf1e0fbe2000e45 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/4.5.12 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/4.6.5 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/5.1.9 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/5.2.14 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/5.3.7 x_refsource_MISC