ThinkPHP 2.x / 3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFO
- State
- Published
- Severity
- 9.3 Critical
- Published
- Nov 18, 2026
- Updated
- Nov 21, 2026
- Reserved
- Nov 11, 2026
Description
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.
| Product | Versions |
|---|---|
| ThinkPHP TopThink | 2.0 through 2.2 Affected3.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | VulnCheck | |
| 3.1 | 9.8 Critical | VulnCheck |
Weaknesses
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
References
- Archived Researcher DisclosureTechnical DetailsExploit
- Vulhub ExploitTechnical DetailsExploit
- Nuclei TemplateTechnical Details
- VulnCheck Advisory: ThinkPHP 2.x/3.0 Lite Unauthenticated RCE via Dispatcher PATH_INFOThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.