CVE-2019-25782 json
ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
published 10h ago modified 7h ago also EUVD-2019-20219
- cvss
- 9.3
- version 4.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no EPSS score yet
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Is CVE-2019-25782 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 8h ago
Exploits and checks
- github.com https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce referenced PoC, tagged "exploit" by a source, unverified
- exploit-db.com https://www.exploit-db.com/exploits/46150 referenced PoC, tagged "exploit" by a source, unverified
- packetstorm.news https://packetstorm.news/files/id/157218/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | 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 |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- TopThink ThinkPHP
Classification
- Weakness
-
- CWE-470 Use of Externally-Controlled Input to Select Classes or Code
References
-
github.com
/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003
patch
-
github.com
/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce
technical-description, exploit
-
exploit-db.com
/exploits/46150
exploit
-
packetstorm.news
/files/id/157218/
exploit
-
github.com
/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml
technical-description
-
vulncheck.com
/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php
third-party-advisory
-
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
- NVD CVE-2019-25782
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.