Skip to content
DayZeroHub
Critical CVSS 9.3CVE-2019-25782

CVE-2019-25782: Code Injection in ThinkPHP 5.0.x Before 5.0.24

TopThink ThinkPHP

Summary

TopThink's ThinkPHP, from version 5.0.0 and before 5.0.24, contains a code injection vulnerability that lets an unauthenticated attacker execute system commands. It has a CVSS 4.0 score of 9.3 (critical severity).

What happened

The vulnerability (CVE-2019-25782, classified as CWE-470) allows a remote, unauthenticated attacker to manipulate an internal property of the Request object using specially crafted POST requests. This can lead to execution of arbitrary system commands through certain application entry points. The source title describes it as remote code execution in Request.php. The score is CVSS 4.0 of 9.3, assigned by the CNA VulnCheck, with 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.

Why it matters

The attack can be carried out over the network with no authentication or user interaction, and the vector indicates high impact on the confidentiality, integrity and availability of the affected system. The CVE record's description states that the Shadowserver Foundation first observed evidence of exploitation on 14 October 2023. However, the source does not flag this vulnerability as known to be exploited in CISA's KEV catalog.

Affected products and versions

ThinkPHP (TopThink): versions >= 5.0.0, < 5.0.24.

ProductVersionsFixed in
TopThink ThinkPHP>= 5.0.0, < 5.0.24—

Action recommended by the source

The source does not state a fixed version or an explicit vendor recommendation. The references include a code commit in the top-think/framework repository tagged as a patch: https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003. Readers are advised to consult the vendor for official guidance.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-470

Relevant change history

  1. Published

    Advisory published.

Summary written with AI assistance from the source data. See the sources and references for complete information. View sources