CakePHP allows remote attackers to modify internal Cake cache and execute arbitrary code
The _validatePost function in libs/controller/components/security.php in CakePHP 1.3.x through 1.3.5 and 1.2.8 allows remote attackers to modify the internal Cake cache and execute arbitrary code via a crafted data[_Token][fields] value that is processed by the unserialize function, as demonstrated by modifying the file_map cache to execute arbitrary local files.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | cakephp/cakephp | >= 1.2.8, < 1.3.6 | 1.3.6 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2010-4335
- https://github.com/cakephp/cakephp/commit/e431e86aa4301ced4273dc7919b59362cbb353cb
- https://github.com/cakephp/cakephp
- http://malloc.im/CakePHP-unserialize.txt
- http://packetstormsecurity.org/files/view/95847/burnedcake.py.txt
- http://secunia.com/advisories/42211
- http://securityreason.com/securityalert/8026
- http://www.exploit-db.com/exploits/16011
- http://www.osvdb.org/69352
- Weakness (CWE)
CWE-20- Platform
- Composer
- Package
cakephp/cakephp- Disclosed
- 17.05.2022
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g2vx-8v47-4vhh - CC BY 4.0
Vulnerability history: cakephp/cakephp
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 22
- First → latest
- 12.2019 09.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 3
- High 8
- Medium 11
Disclosures per year
- 2019: 1
- 2020: 0
- 2021: 0
- 2022: 9
- 2023: 7
- 2024: 0
- 2025: 0
- 2026: 5
-
CakePHP allows remote attackers to modify internal Cake cache and execute arbitrary code this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.