Skip to content

CVE-2012-20007 ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO

CriticalCVSS 9.3 EPSS 0.53%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
PHP

Description

ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contains an eval injection vulnerability in the Dispatcher PATH_INFO parsing, which uses preg_replace with the /e modifier and a double-quoted replacement. Unauthenticated attackers can send crafted requests to index.php with a malicious 's' parameter containing PHP expressions to execute arbitrary code on the server. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
topthink/thinkphp = 3.0; >= 2.0, <= 2.2 after 2.2 Fixed

Affected products

ProductAffected versionsFixed in
topthink/thinkphp >= 2.0, <= 2.2 No fix listed
topthink/thinkphp = 3.0 No fix listed

References