Read the docs

Code injection in TopThink ThinkPHP allows unauthenticated command execution

Priority HIGH 81CWE-470Published · Updated

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

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.02195 83rd percentileScored 2026-11-30
Public exploit Yes 3 exploit referencesTagged by the CNA
Fix Fixed ThinkPHP (TopThink): 5.0.24

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

VendorProductAffected versionsFixed inStatusSource
TopThinkThinkPHP5.0.0 to before 5.0.245.0.24Patch availableCNA
  • ThinkPHP VendorTopThink Affected 5.0.0 to before 5.0.24 Fixed in 5.0.24 Patch available CNA

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

  1. 2026-11-18 Threatist record created from CVE-2019-25782
  2. 2026-11-18 CISA SSVC decision points changed
  3. 2026-11-18 Alias added: GHSA-c952-95vh-5fw8

References

  • TI-2012-05493 Eval injection in ThinkPHP Lite mode allows remote code execution CVSS 4.0CRITICAL 9.3

Sources