Skip to content

CVE-2019-25782 ThinkPHP 5.0.0 < 5.0.24 RCE via _method construct in Request.php

CriticalCVSS 9.3 EPSS 0.68% Public exploit
Published
Updated
Exploit status
Public exploit available
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total
Technology
PHP

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
topthink/thinkphp >= 5.0.0, < 5.0.24 5.0.24 Fixed

Affected products

ProductAffected versionsFixed in
topthink/thinkphp >= 5.0.0, < 5.0.24 5.0.24

References