Patchfirst
CVE-2012-20007 Critical · 9.8 EPSS 0.5%

ThinkPHP 2.0 through 2.2 and 3.0 Lite mode contains an eval injection vulnerability in the Dispatcher PATH_INFO…

TopThink · ThinkPHP

Summary

The flaw is an eval injection in the PATH_INFO parsing of the Dispatcher in TopThink's ThinkPHP framework, affecting versions 2.0 through 2.2 and 3.0 in Lite mode, where preg_replace is called with the /e modifier and a double-quoted replacement. An unauthenticated remote attacker who can reach index.php can send a crafted request with a malicious 's' parameter containing PHP expressions and execute arbitrary code on the server, with no user interaction required.

Official description · NVD

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.

Breakdown
61.6 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited the day it was disclosed.

  1. DisclosedFirst seen exploitedVulnCheck KEV evidenceday 0

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close