Live threats
VulnFox

All CVEs / TopThink

CVE-2012-20007TopThink ThinkPHP

Unauthenticated eval injection in ThinkPHP 2.0-2.2 and 3.0 Lite

Critical 9.3 No auth needed

Priority
77
CVSS 4.0
9.3
EPSS
—
Auth required
No
Published
Nov 18, 2026
Updated
Nov 21, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-95
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
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

What happens

ThinkPHP 2.0 through 2.2 and 3.0 Lite contain an eval injection vulnerability in the Dispatcher PATH_INFO parsing. An unauthenticated attacker can send malicious requests to index.php with a crafted 's' parameter containing PHP expressions to execute arbitrary code on the server. Exploitation was confirmed by Shadowserver Foundation on October 14, 2023.

AI-generated summary (Claude) based on NVD and CISA data. Not reviewed yet: check the details in the vendor advisory.

Show the original NVD text

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.

Source text, unmodified. NVD.

What to do

No patch data

Update ThinkPHP to a version after 3.0 Lite or apply security patches from the vendor. Restrict access to index.php and strictly validate the 's' parameter.

AI-generated from public data; not reviewed.

  1. Apply the vendor's security update for ThinkPHP.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.