{"id":"CVE-2012-20007","published":"2026-11-18T16:17:47Z","modified":"2026-11-18T16:17:47Z","title":"ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contains an eval injection vulnerability in the Dispatcher PATH_INFO…","vendor":"TopThink","product":"ThinkPHP","tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"NVD"},"summary":{"text":"The flaw is an eval injection in the PATH_INFO parsing of the Dispatcher in TopThink's ThinkPHP framework, affecting versions 2.0 through 2.2 and 3.0 in Lite mode, where preg_replace is called with the /e modifier and a double-quoted replacement. An unauthenticated remote attacker who can reach index.php can send a crafted request with a malicious 's' parameter containing PHP expressions and execute arbitrary code on the server, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-19T16:13:31Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.00526,"percentile":0.45321,"date":"2026-11-19","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-11-18","exploitedFirstSeen":"2026-11-18","ransomware":false,"evidence":[{"url":"https://www.cve.org/CVERecord?id=CVE-2012-20007","date":"2026-11-18"},{"url":"https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info","date":"2026-11-18"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":1,"pulses":[{"name":"Known_Cve | Nov 19, 2026 | Part 2/3","url":"https://otx.alienvault.com/pulse/6afeb7d9814dde14d2b906db","created":"2026-11-19"}],"provenance":"machine"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"http://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html","tags":[]},{"url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml","tags":[]},{"url":"https://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce","tags":[]},{"url":"https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2012-6619","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2012-6619","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-11-18","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-20007","provenance":"source"},{"date":"2026-11-18","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://www.cve.org/CVERecord?id=CVE-2012-20007","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":61.6,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 1 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":9.06,"detail":"percentile 0.4532"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.68,"detail":"1 pulse"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}