Vulnerability Intelligence

Trusted Third Party Report High Confidence Not in CISA KEV CVSS 9.3 · Critical

CVE-2012-20007

ThinkPHP Remote Code Execution

TopThink / ThinkPHP · 2.0 to <= 2.2

Analyst Assessment

CVE-2012-20007 is an eval injection vulnerability in TopThink ThinkPHP 2.0 through 2.2 and 3.0 Lite mode that can allow unauthenticated arbitrary code execution through crafted requests. Previdian has not observed exploitation attempts in its honeypot network yet. The vulnerability is network-reachable, requires no authentication or user interaction, and has low attack complexity.

What Changed

This initial assessment is based on the CVE evidence, Archived Researcher Disclosure, and Vulhub Exploit.

Recommended Action

A public proof of concept is available. Prioritize patching affected systems.

AI-generated. Assessed 20 Nov 2026.

Exploitation
Trusted Third Party Report
Confidence
High
Attack Surface
ThinkPHP
Defender Action
Prioritize Remediation

Exploitation Evidence

Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.

Review Evidence

Decision summary

What security teams need to know first

Direct answers before the deeper technical record.

What it is

CVE-2012-20007 is an unauthenticated vulnerability affecting TopThink ThinkPHP.

Have exploitation attempts been observed?

Yes. Exploitation attempts have been reported for this vulnerability. Previdian lists it as a known exploited vulnerability. Also reported by third-party sources. Confidence is high.

Who is affected?

TopThink / ThinkPHP, including 2.0 to <= 2.2 and 3.0.

What should we do?

Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.

Overview

ThinkPHP Remote Code Execution

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.

TopThink Affected
ThinkPHP
Through 2.2 3.0
View vendor advisory (opens in new tab)
Published
18 Nov 2026
Exploitation Attempts Reported
18 Nov 2026
Attack vector
Remote
Complexity
Low
Privileges
None
User interaction
None
Severity
CVSS 9.3 · Critical
EPSS
0.5%
First Observed
—
Last Observed
—

CVE References