CVE-2019-25782 PUBLISHED

ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php

Assigner: VulnCheck
Reserved: 11.11.2026 Published: 18.11.2026 Updated: 18.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS Score: 9.3

Product Status

Vendor TopThink
Product ThinkPHP
Versions Default: unaffected
  • affected from 5.0.0 to 5.0.24 (excl.)

Credits

  • The Shadowserver Foundation reporter

References

Problem Types

  • Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') CWE