VDB
Sign up
HIGH

GHSA-g2vx-8v47-4vhh

CakePHP allows remote attackers to modify internal Cake cache and execute arbitrary code

Quick fix

GHSA-g2vx-8v47-4vhh — cakephp/cakephp: upgrade to the fixed version with the command below.

composer require cakephp/cakephp:^1.3.6

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/cakephp/cakephp
Introduced in: 1.2.8Fixed in: 1.3.6
Fixcomposer require cakephp/cakephp:^1.3.6

References