CVE-2019-25782

9.8Critical

Published 18 Nov 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

9.8CVSS

Critical

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
None
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-470

What an attacker gets

Unauthenticated attackers can execute arbitrary system commands on your server. They do this by sending a crafted POST request to public endpoints like the captcha or index controller.

Root cause

The application allows an attacker to overwrite the Request filter property via the _method=__construct parameter, enabling remote code execution.

Affected versions

ThinkPHP 5.0.0 through 5.0.23

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade to ThinkPHP 5.0.24 or later. If you cannot patch immediately, block requests containing _method=__construct in your WAF or web server configuration.

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

NVD 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.

References

Source: nvd.nist.gov/vuln/detail/CVE-2019-25782