CVE-2012-20007ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO
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.
9.3 CRITICALNot in KEVNVD: Received
Overview
Severity
| Score | Severity | Version | Technologies Affected |
|---|---|---|---|
| 9.3 | CRITICAL | 4.0VulnCheck (CNA) | TopThink ThinkPHP |
| 9.8 | CRITICAL | 3.1VulnCheck (CNA) |
Details
- CVE ID
- CVE-2012-20007
- Status
- Received
- Assigner (CNA)
- VulnCheck
- Published
- Nov 18, 2026
- Last modified
- 2026-11-18 16:17 UTC
- Weaknesses
- CWE-95 · Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected Products
As published by the CNA in the CVE record.
TopThinkThinkPHP2 version ranges
- 2.0 through 2.2
- 3.0
References
- web.archive.org http://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html
- github.com https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml
- github.com https://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce
- vulncheck.com https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info