# CVE-2019-25782: ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.20%, higher than 83% of CVEs (2026-12-02)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2026-11-18T15:35:18.909Z
- Modified: 2026-11-18T18:17:32.423Z
- Weaknesses: CWE-470
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- TopThink ThinkPHP: from 5.0.0 before 5.0.24

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce> (exploit, 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> (exploit, technical-description)
- <https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003> (patch)
- <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)

## Sources

- CVE List: [CVE-2019-25782](https://www.cve.org/CVERecord?id=CVE-2019-25782), CVE Terms of Use, modified 2026-11-18
- NVD: [CVE-2019-25782](https://nvd.nist.gov/vuln/detail/CVE-2019-25782), Public domain, modified 2026-11-18

---

Page: https://cve.day/CVE-2019-25782 · Whole record: https://cve.day/CVE-2019-25782.json · Rebuilt by cve.day 2026-11-25T22:57:50.476Z
