CVE-2012-20007
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.
- Severity
- CRITICALCVSS 9.3
- Priority
- P4: Lower exploitation likelihood
- Exploit prediction (EPSS)
- 0.66%higher than 53% of CVEs
- CISA KEV
- Not listed as known exploited
- First reported
- 18 November 2026
Is CVE-2012-20007 on your systems?
Sign in to get an AI-assisted analysis, a read-only verification script for your servers, and alerts when this CVE changes or is exploited.
References
- http://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml
- https://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce
- https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info
Look up another CVE
Sources: NVD, CISA Known Exploited Vulnerabilities catalog and FIRST EPSS. Official CVE record · NVD entry