Code injection in TopThink ThinkPHP allows unauthenticated command execution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA.
Summary
ThinkPHP from 5.0.0 before 5.0.24 contains a code injection flaw (CWE-470) in request handling. An unauthenticated remote attacker can run arbitrary system commands by sending crafted POST requests that overwrite the Request filter property. Exploitation evidence was first observed by the Shadowserver Foundation on 2023-10-14, and a public exploit is linked in the references.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade TopThink ThinkPHP to version 5.0.24.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
- Fix · CNA ThinkPHP (TopThink) Fixed in 5.0.24
Timeline
- 2026-11-18 Threatist record created from CVE-2019-25782
- 2026-11-18 CISA SSVC decision points changed
- 2026-11-18 Alias added: GHSA-c952-95vh-5fw8
References
More TopThink vulnerabilities
- TI-2012-05493 Eval injection in ThinkPHP Lite mode allows remote code execution CVSS 4.0CRITICAL 9.3
Sources
- CVE-2019-25782 · CVE Program
- CVE-2019-25782 · NVD
- FIRST EPSS
- GHSA-c952-95vh-5fw8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences