CVE-2012-20007 is a critical eval injection flaw in ThinkPHP 2.0 through 2.2 and 3.0 Lite mode that lets unauthenticated attackers run arbitrary PHP code on the server; the Shadowserver Foundation first observed exploitation evidence on 2023-10-14.
What Is It
The vulnerability is in ThinkPHP's Dispatcher PATH_INFO parsing. That code calls preg_replace with the /e modifier and a double-quoted replacement string. Because of this, attacker-controlled input can be evaluated as PHP. An unauthenticated attacker can send a crafted request to index.php with a malicious s parameter that contains PHP expressions, and the server will execute that code.
The weakness is classified as CWE-95 (Eval Injection). VulnCheck assigned the CVE and published the record on 2026-11-18. Its NVD status is currently "Received."
Why It Matters
- CVSS 3.1: 9.8 (Critical), vector
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. The attack works over the network, needs low complexity, and requires no privileges or user interaction. - CVSS 4.0: 9.3 (Critical), with high confidentiality, integrity, and availability impact on the vulnerable system.
- According to the NVD description, the Shadowserver Foundation first observed exploitation evidence on 2023-10-14.
- Public references include a Nuclei template and a Vulhub reproduction environment, so the issue is well documented and easy to test.
- This CVE is not currently in the CISA KEV catalog: the supplied KEV entry is empty. KEV does not confirm active exploitation, and no KEV due date or required action applies.
What's Vulnerable
- Vendor: TopThink
- Product: ThinkPHP
- Affected versions: 2.0 through 2.2, and 3.0 (Lite mode)
The NVD record lists no affected CPEs.
Patch Status
The record lists no vendor patch or fixed version. Organizations still running ThinkPHP 2.x or 3.0 Lite should treat those deployments as exposed to unauthenticated remote code execution. Review the VulnCheck advisory below for current remediation guidance.