CVE-2012-20007

published 18 Nov 2026 · updated 21 Nov 2026

ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO

10.0CriticalCVSS 9.8EPSS 1%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Briefing

Written from the sources below · deepseek-v4.1-flash

ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contain an unauthenticated eval injection in Dispatcher PATH_INFO parsing using preg_replace with the /e modifier. Crafted requests to index.php with a malicious 's' parameter can execute arbitrary PHP code on affected servers.

Why it mattersPublic exploit material is available and exploitation evidence was observed, so exposed ThinkPHP installations are at high risk.

ActionApply the vendor mitigation, restrict access to index.php, and check for indicators of exploitation.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
TopThink=3.0, >=2.0 <=2.2

Exploit evidence

2 public sources

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2012-20007 severity on Zeptric[![CVE-2012-20007](https://zeptric.io/badge/cve/CVE-2012-20007.svg)](https://zeptric.io/cve/CVE-2012-20007)