CVE-2019-25782
published critical CVSS 4.0 · 9.3ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| TopThink | — | ThinkPHP5.0.0 to < 5.0.24 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 9.8 | critical | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| TopThink | ThinkPHP | 5.0.0 to < 5.0.24 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-470 Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
References
7- Nuclei Template https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml
- Fix Commit https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003
- Vulhub Exploit https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce
- Packet Storm 157218 https://packetstorm.news/files/id/157218/
- EDB-46150 https://www.exploit-db.com/exploits/46150
- VulnCheck Advisory: ThinkPHP 5.0.0-5.0.23 RCE via _method construct in Request.php https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php
- VulnCheck Advisory: ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php
Provider assertions
2VulnCheck · cna
ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a26b5bf46305332efa08893b7e94f62910916aa4b35f21bde318b8f18b0d9003
- Ingested
- 18 Nov 2026, 17:53:09 UTC
- Source record
- Official CVE record