CVE-2010-4335 CakePHP allows remote attackers to modify internal Cake cache and execute arbitrary code

High 7.5 Published Updated

Remote attackers can execute arbitrary code by sending crafted data that triggers unsafe deserialization in the CakePHP security component.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2010-4335?

CVE-2010-4335 is a high-severity unsafe deserialization vulnerability in n/a, published on 14 Jan 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2010-4335?

2 open source packages ship an affected version, including cakephp/cakephp. It affects 2 products.

PackageAffectedFixed in
cakephp/cakephp PackagistFrom 1.2.81.3.6
cakephp/cakephp PackagistFrom 1.2.81.3.6

Products include Cakefoundation Cakephp, Cakephp Cakephp.

How do I fix CVE-2010-4335?

Upgrade cakephp/cakephp to 1.3.6 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2010-4335 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2010-4335 exists.

Public exploit code: 1 Metasploit module and 2 Exploit-DB entries.

Sources

Also known as DEBIAN-CVE-2010-4335, GHSA-g2vx-8v47-4vhh.

Is CVE-2010-4335 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free