CVE-2019-25782
ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
CVSS Score
9.8
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-470 |
| Vendor | topthink |
| Product | thinkphp |
| Published | Nov 18, 2026 |
| Last Updated | Nov 18, 2026 |
Stay Ahead of the Next One
Get instant alerts for topthink thinkphp
Be the first to know when new critical vulnerabilities affecting topthink thinkphp are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Affected Versions
TopThink / ThinkPHP
5.0.0 < 5.0.24
References
github.com: https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003 github.com: https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce exploit-db.com: https://www.exploit-db.com/exploits/46150 packetstorm.news: https://packetstorm.news/files/id/157218/ github.com: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml vulncheck.com: https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php vulncheck.com: https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php
Credits
๐ The Shadowserver Foundation