CVE-2019-25782TopThink ThinkPHP Use of Externally-Controlled Input to Select Classes or Code (Unsafe Reflection)
NVD
Vulnerability 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.
CVSS v4.0 Base Metrics — Score 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:NAttack VectorNetwork
Attack ComplexityLow
Attack RequirementsNone
Privileges RequiredNone
User InteractionNone
Confidentiality (Vulnerable System)High
Integrity (Vulnerable System)High
Availability (Vulnerable System)High
Confidentiality (Subsequent System)None
Integrity (Subsequent System)None
Availability (Subsequent System)None
Show CVSS v3.x metrics (score 9.8)
CVSS v3.1 Base Metrics — Score 9.8 (CRITICAL)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityHigh
IntegrityHigh
AvailabilityHigh
Affected & Patched Versions
- TopThink ThinkPHP >= 5.0.0 and < 5.0.24
- TopThink ThinkPHP 5.0.24
What to do
Treat as urgent. Attackers are exploiting this flaw.
- Check whether you run TopThink ThinkPHP and which version.
- Update to a patched version listed above, then confirm the new version.
- Review logs and exposed services for signs of earlier compromise.
Timeline
- Nov 18, 2026Published
- Nov 18, 2026PoC status changed: POC to UNKNOWN
- Nov 18, 2026Record last modified
- Nov 18, 2026PoC status changed: POC to UNKNOWN
- Nov 18, 2026PoC status changed: POC to UNKNOWN
- Nov 18, 2026PoC status changed: POC to UNKNOWN
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new TopThink ThinkPHP CVEsYou are reading CVE-2019-25782. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsExternal References
- Patchhttps://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003
- Exploithttps://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce
- Exploithttps://www.exploit-db.com/exploits/46150
- Exploithttps://packetstorm.news/files/id/157218/
- Referencehttps://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml
- Referencehttps://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php
- Referencehttps://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php
Data last checked: Nov 24, 2026 23:14 UTC