Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.3
CVE-2019-25782: ThinkPHP lets attackers run commands via crafted POST
CVE-2019-25782 · published 4 days ago
Summary
The open‑source ThinkPHP framework (versions 5.0.0 through 5.0.23) can be tricked into executing any system command when an attacker sends a specially crafted POST request. This happens because a request parameter can overwrite the internal filter setting, causing the framework to run the attacker’s command. Update ThinkPHP to version 5.0.24 or later, or apply the vendor’s recommended configuration changes to block the vulnerable request handling.
What to do
- Update topthink thinkphp to version 5.0.24 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| topthink | thinkphp | < 5.0.24 |
Original advisory text
ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
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.
References
- https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f319...
- https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce
- https://www.exploit-db.com/exploits/46150
- https://packetstorm.news/files/id/157218/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilit...
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-constr...
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-constr...
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
9.3
Critical
Type
CWE-470Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
Timeline
Published18 Nov 2026
Updated21 Nov 2026
First seen18 Nov 2026
Track software like this
Free during beta