{"vuln_id":"CVE-2012-20007","aliases":[],"description":"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.","published_at":"2026-11-18T16:17:47.560000Z","modified_at":"2026-11-21T04:17:09.163000Z","first_seen_at":"2026-11-21T19:15:50.223364Z","severity":"critical","severity_source":"nvd","cvss_score":9.3,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cwe":["CWE-95"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.00526,"epss_percentile":0.4543,"nvd_status":"Received","enriched_at":null,"links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-20007"},"matched_alias":null,"items":[{"id":7947,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2012-20007: 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 mo…","summary":"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.\n\nReferences:\nhttp://web.archive.org/web/20140201221754/http://www.jb51.net:80/softjc/43550.html\nhttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-2-rce.yaml\nhttps://github.com/vulhub/vulhub/tree/master/thinkphp/2-rce\nhttps://www.vulncheck.com/advisories/thinkphp-2-x-3.0-lite-unauthenticated-rce-via-dispatcher-path-info","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-20007","published_at":"2026-11-18T16:17:47.560000Z","updated_at":"2026-11-21T04:17:09.163000Z","fetched_at":"2026-11-21T19:15:31.483783Z","severity":"critical","cvss_score":9.3,"epss":0.00526,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":null,"vuln_id":"CVE-2012-20007","vuln_ids":["CVE-2012-20007"],"tags":["CWE-95"],"cluster_id":8460,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/7947","html":"https://vulnwatch.ve1ve2.com/item/7947"}}]}