Eval Injection Vulnerability in ThinkPHP 2.0 to 3.0 Lite by ThinkPHP
CVE-2012-20007

9.3CRITICAL

Key Information:

Vendor

Topthink

Status
Vendor
CVE Published:
18 November 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2012-20007?

The eval injection vulnerability in ThinkPHP versions 2.0 through 2.2 and 3.0 Lite mode arises from flawed handling of PATH_INFO parsing in the Dispatcher. This vulnerability allows unauthenticated attackers to craft malicious requests to the index.php file. By supplying a specifically constructed 's' parameter that contains PHP expressions, attackers can exploit the /e modifier in preg_replace, leading to potential execution of arbitrary PHP code on the affected server. This vulnerability has been documented, with evidence of exploitation reported by the Shadowserver Foundation.

Affected Version(s)

ThinkPHP 2.0 <= 2.2

ThinkPHP 3.0

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

The Shadowserver Foundation
.