{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2012-20007","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","state":"PUBLISHED","assignerShortName":"VulnCheck","dateReserved":"2026-11-11T16:45:15.718Z","datePublished":"2026-11-18T15:35:23.052Z","dateUpdated":"2026-11-18T15:35:23.052Z"},"containers":{"cna":{"providerMetadata":{"orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","shortName":"VulnCheck","dateUpdated":"2026-11-18T15:35:23.052Z"},"datePublic":"2012-04-25T00:00:00.000Z","title":"ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO","descriptions":[{"lang":"en","value":"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."}],"tags":["unsupported-when-assigned","x_known-exploited-vulnerability"],"problemTypes":[{"descriptions":[{"lang":"en","description":"Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","cweId":"CWE-95","type":"CWE"}]}],"affected":[{"defaultStatus":"unknown","vendor":"TopThink","product":"ThinkPHP","versions":[{"status":"affected","versionType":"custom","version":"2.0","lessThanOrEqual":"2.2"},{"status":"affected","versionType":"custom","version":"3.0"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*","versionStartIncluding":"2.0","versionEndIncluding":"2.2"},{"vulnerable":true,"criteria":"cpe:2.3:a:thinkphp:thinkphp:3.0:*:*:*:*:*:*:*"}]}]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","subConfidentialityImpact":"NONE","vulnIntegrityImpact":"HIGH","subIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subAvailabilityImpact":"NONE","exploitMaturity":"NOT_DEFINED","Safety":"NOT_DEFINED","Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","valueDensity":"NOT_DEFINED","vulnerabilityResponseEffort":"NOT_DEFINED","providerUrgency":"NOT_DEFINED","version":"4.0","baseSeverity":"CRITICAL","baseScore":9.3,"vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}},{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","version":"3.1","baseSeverity":"CRITICAL","baseScore":9.8,"vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}}],"references":[{"url":"http://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html","name":"Archived Researcher Disclosure","tags":["technical-description","exploit"]},{"url":"https://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce","name":"Vulhub Exploit","tags":["technical-description","exploit"]},{"url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml","name":"Nuclei Template","tags":["technical-description"]},{"name":"VulnCheck Advisory: ThinkPHP 2.x/3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO","tags":["third-party-advisory"],"url":"https://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info"}],"credits":[{"lang":"en","value":"The Shadowserver Foundation","type":"reporter"}],"x_generator":{"engine":"vulncheck-kclub"}}}}