ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
- State
- Published
- Severity
- 9.3 Critical
- Published
- Nov 18, 2026
- Updated
- Nov 18, 2026
- Reserved
- Nov 11, 2026
Description
ThinkPHP 5.0.0 before 5.0.24 contains a code injection vulnerability that allows unauthenticated attackers to execute commands by setting _method=__construct in POST data to overwrite the Request filter property. Attackers can send POST requests to endpoints reached via ?s=captcha or ?s=index/index/index with filter[]=system and server[REQUEST_METHOD] values to execute arbitrary system commands. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14.
| Product | Versions |
|---|---|
| ThinkPHP TopThink | 5.0.0 to before 5.0.24 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | VulnCheck | |
| 3.1 | 9.8 Critical | VulnCheck |
Weaknesses
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
- Fix CommitPatch
- Vulhub ExploitTechnical DetailsExploit
- EDB-46150Exploit
- Packet Storm 157218Exploit
- Nuclei TemplateTechnical Details
- VulnCheck Advisory: ThinkPHP 5.0.0-5.0.23 RCE via _method construct in Request.phpThird-Party Advisory
- VulnCheck Advisory: ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.phpThird-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.