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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | cakephp | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | cakephp | No fix yet | — |
| Ubuntu 20.04 LTS | cakephp | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | cakephp | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
abraxas/CVE-2026-77635 ★ 0 · Sep 19, 2026
CVE-2026-77635 - CakePHP - Critical 9.2 - Unauthenticated GET /?path= - SQL Injection
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | cakephp/cakephp | >= 5.3.0, < 5.3.7 | 5.3.7 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/cakephp | >= 5.2.0, < 5.2.15 | 5.2.15 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/cakephp | >= 5.1.0, < 5.1.10 | 5.1.10 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/database | >= 5.3.0, < 5.3.7 | 5.3.7 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/database | >= 5.2.0, < 5.2.15 | 5.2.15 | GHSA-fxf7-vhh8-7vpq |
| Packagist | cakephp/database | >= 5.1.0, < 5.1.10 | 5.1.10 | GHSA-fxf7-vhh8-7vpq |
References
- https://github.com/cakephp/cakephp/security/advisories/GHSA-fxf7-vhh8-7vpq
- https://github.com/cakephp/cakephp/commit/138f2f61486532c29ee4d106da2a9848c1ff1ab3
- https://github.com/cakephp/cakephp/commit/489a40fb7c6e597af33fe0f7264047afccb90d55
- https://github.com/cakephp/cakephp/commit/9f1ad970a3b72293d4a37e694276645f804e819f
- https://github.com/cakephp/cakephp/releases/tag/5.1.10
- https://github.com/cakephp/cakephp/releases/tag/5.2.15
- https://github.com/cakephp/cakephp/releases/tag/5.3.7