Vulnerability · Published Aug 24, 2026 · Assigned by GitHub_M
CVE-2026-77635CakePHP: FunctionsBuilder::jsonValue() vulerable to SQL injection with PostgresDriver
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.5% (higher than 43% 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 versions 5.1.10, 5.2.15, and 5.3.7 on their respective release lines, FunctionsBuilder::jsonValue() with PostgresDriver is vulnerable to SQL injection when user-controlled data is supplied to the jsonPath parameter. This issue is fixed in versions 5.1.10, 5.2.15, and 5.3.7.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | cakephp/cakephp | 5.1.10 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/cakephp | 5.3.7 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/cakephp | 5.2.15 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/database | 5.3.7 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/database | 5.2.15 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/database | 5.1.10 | GHSA-fxf7-vhh8-7vpq |
| Ubuntu:22.04:LTS | cakephp | no fix listed | UBUNTU-CVE-2026-77635 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| cakephp | cakephp | >= 5.1.0, < 5.1.10>= 5.2.0, < 5.2.15>= 5.3.0, < 5.3.7 |
| cakephp | cakephp/database | >= 5.1.0, < 5.1.10>= 5.2.0, < 5.2.15>= 5.3.0, < 5.3.7 |
Weakness: CWE-89 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq x_refsource_CONFIRM
- https://github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3 x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55 x_refsource_MISC
- https://github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/5.1.10 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/5.2.15 x_refsource_MISC
- https://github.com/cakephp/cakephp/releases/tag/5.3.7 x_refsource_MISC