CVE-2012-20007: Vulnerability in TopThink ThinkPHP
Critical. 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...
CWE-95
- Exploitation
- None confirmed
- Severity
- 9.3 of 10
- Attack likelihood
- 0.7 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-cg43-958h-m32g
- EU ID
- EUVD-2012-6619
- Vector
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Weakness
- CWE-95
- Published
- 18 Nov 2026
- Last change
- 21 Nov 2026
- Likelihood rank
- Higher than 46 % of all rated vulnerabilities
- Analysis status
- Received
Affected products
Affected versions and the first fixed release
- TopThink ThinkPHP From 2.0 through 2.2; Version 3.0. No fixed version recorded
- ThinkPHP Versions 3.0, 2.0 ≤2.2. No fixed version recorded
Advisories
Vendor and security advisories
- web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html
- github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/th...
- github.com/vulhub/vulhub/tree/master/thinkphp/2-rce
- vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-...
Related
- ThinkPHP vulnerabilities Recent advisories, watch this product
- ThinkPHP vulnerabilities Recent advisories, watch this product