Cyber & AI intelligence
Briefs indexed3924
Issues37
Published Mondays07:30 CT
⚡ Active KEV CVE-2019-25782 2026-11-19

ThinkPHP 5.0.x `_method=__construct` Flaw Lets Unauthenticated Attackers Run Commands (CVE-2019-25782)

"CVE-2019-25782 is a critical code injection flaw in ThinkPHP 5.0.x that lets unauthenticated attackers run arbitrary system commands with a crafted POST request. The NVD record lists versions 5.0.0 through 5.0.23 as…"

CVE-2019-25782 is a critical code injection flaw in ThinkPHP 5.0.x that lets unauthenticated attackers run arbitrary system commands with a crafted POST request. The NVD record lists versions 5.0.0 through 5.0.23 as affected.

What Is It

CVE-2019-25782 is a code injection vulnerability in the TopThink ThinkPHP framework. An unauthenticated attacker sets _method=__construct in POST data, which overwrites the Request object's filter property. The NVD record says attackers can send POST requests to endpoints reached via ?s=captcha or ?s=index/index/index, supplying filter[]=system and server[REQUEST_METHOD] values to run arbitrary system commands.

VulnCheck assigned the CVE and classifies the weakness as CWE-470 (Use of Externally-Controlled Input to Select Classes or Code). NVD published the record on 2026-11-18, and its status is currently "Received."

Why It Matters

What's Vulnerable

The CVE record lists versions outside this range as unaffected. NVD does not yet list any affected CPEs.

Patch Status

According to the NVD record, versions before 5.0.24 are affected. However, the cited sources don't agree on the upper bound. One VulnCheck advisory URL gives the range as 5.0.0–5.0.24, which suggests 5.0.24 may also be affected. The other gives it as 5.0.0–5.0.23. The supplied data does not settle which version first contains the fix. The references include an upstream fix commit in the top-think/framework repository. Recommended actions:

The supplied data does not include a CISA required action or due date.

Sources