ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
3 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 5.0.24.
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.
Briefing
Written from the sources below · deepseek-v4.1-flash
ThinkPHP 5.0.0 before 5.0.24 is affected by unauthenticated remote code execution via the _method=__construct request parameter, allowing attackers to overwrite the Request filter property and execute system commands. Public exploit material exists and exploitation evidence was observed on 2023-10-14.
Why it mattersPublic exploit material, observed exploitation, and a 9.8 CVSS score make exposed ThinkPHP 5.0.x endpoints an urgent patching priority.
ActionUpgrade ThinkPHP to 5.0.24 or later, and block or monitor requests containing _method=__construct and filter[] parameters.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| TopThink | >=5.0.0 <5.0.24 | 5.0.24 |
Exploit evidence
3 public sources
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket