Code Injection Vulnerability in ThinkPHP 5.0.0-5.0.23
CVE-2019-25782

9.3CRITICAL

Key Information:

Vendor

Topthink

Status
Vendor
CVE Published:
18 November 2026

Badges

๐Ÿ‘พ Exploit Exists๐ŸŸก Public PoC

What is CVE-2019-25782?

ThinkPHP versions 5.0.0 through 5.0.23 are susceptible to a code injection vulnerability that can be exploited by unauthenticated attackers. By manipulating the POST data to include _method=__construct, attackers can overwrite the Request filter property, enabling them to send specially crafted POST requests to vulnerable endpoints such as ?s=captcha or ?s=index/index/index. This enables the execution of arbitrary system commands on the server, posing a significant risk to the integrity and security of the affected applications. Exploitation of this vulnerability was reported by the Shadowserver Foundation on October 14, 2023.

Affected Version(s)

ThinkPHP 5.0.0 < 5.0.24

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V4

Score:
9.3
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • ๐ŸŸก

    Public PoC available

  • ๐Ÿ‘พ

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

The Shadowserver Foundation
.