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.
| Product | Versions | Fixed 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.
Sources and references
- https://github.com/top-think/framework/commit/4a4b5e64fa4c46f851b4004005bff5f3196de003 — CVE Program
- https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce — CVE Program
- https://www.exploit-db.com/exploits/46150 — CVE Program
- https://packetstorm.news/files/id/157218/ — CVE Program
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/thinkphp/thinkphp-5023-rce.yaml — CVE Program
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.23-rce-via-method-construct-in-request-php — CVE Program
- https://www.vulncheck.com/advisories/thinkphp-5.0.0-5.0.24-rce-via-method-construct-in-request-php — CVE Program
Weaknesses (CWE): CWE-470
Relevant change history
Published
Advisory published.