Patchfirst
CVE-2019-25782 Public exploit Critical · 9.8 EPSS 0.7%

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

No fixed version listed yet.Check the vendor advisory. References ↓

TopThink · ThinkPHP

Summary

ThinkPHP versions 5.0.0 before 5.0.24 contain a code injection flaw in the Request component (Request.php), where the _method parameter can be set to __construct to overwrite the Request filter property. An unauthenticated attacker with network access can send crafted POST requests to routes such as ?s=captcha or ?s=index/index/index, setting the filter and server values to run arbitrary system commands, with no user interaction or configuration required.

Official description · NVD

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.

Breakdown
68.2 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited the day it was disclosed.

  1. DisclosedFirst seen exploitedVulnCheck KEV evidenceday 0

Affected versions and fixes

as published in the CVE record

TopThink ThinkPHP

Affected: >= 5.0.0, < 5.0.24

What security researchers reported

Not named in any threat report yet

Also mentioned in 1 community threat pulse (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

7 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close