CVE-2012-20007
ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO
CVSS Score
9.8
EPSS Score
0.5%
EPSS Percentile
45th
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.
| CWE | CWE-95 |
| Vendor | topthink |
| Product | thinkphp |
| Published | Nov 18, 2026 |
| Last Updated | Nov 21, 2026 |
Stay Ahead of the Next One
Get instant alerts for topthink thinkphp
Be the first to know when new critical vulnerabilities affecting topthink thinkphp are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
TopThink / ThinkPHP
2.0 โค 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/vulhub/vulhub/tree/master/thinkphp/2-rce github.com: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml vulncheck.com: https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info
Credits
๐ The Shadowserver Foundation