CVE-2012-20007
ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contains an eval …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html
- github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/think
- github.com/vulhub/vulhub/tree/master/thinkphp/2-rce
- www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path
- nvd.nist.gov/vuln/detail/CVE-2012-20007
- cve.org/CVERecord?id=CVE-2012-20007
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.