CVE-2019-25782
ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
- CVSS
- 9.3
- EPSS
- 2.20% (p83)
- Published
- 2026-11-18
- Age
- 18d old
- Modified
- 2026-11-19
- Product
- TopThink ThinkPHP
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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.
Fixed in
5.0.24
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | ThinkPHP | >=5.0.0, <5.0.24 | 5.0.24 |
Sources
- NVD · first seen 18d ago · NVD terms of use
- OSV · first seen 17d ago · CC-BY 4.0
- CVE List · first seen 18d ago · CVE Terms of Use
References
- https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003 patch
- https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce technical-description
- https://www.exploit-db.com/exploits/46150 exploit
- https://packetstorm.news/files/id/157218/ exploit
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml technical-description
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php third-party-advisory
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php third-party-advisory