CVE-2018-25270: Vulnerability in Thinkphp
Critical. ThinkPHP 5.0.23 contains a remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary PHP code by invoking functions through the routing parameter. Attackers can craft requests to the index.php endpoint with malicious function parameters to execute system commands with application privileges.
CWE-639
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- Unknown
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-639
- Published
- 22 Apr 2026
- Last change
- 17 Jun 2026
Affected products
Affected versions and the first fixed release
- Thinkphp From 5.0.0 before 5.0.23; Version 5.1.31. Fixed in 5.0.23
Advisories
Vendor and security advisories
- github.com/top-think/framework/
- thinkphp.cn
- vulncheck.com/advisories/thinkphp-remote-code-execution-via-invokefunction
Exploit code
Public exploits and proofs of concept, handle with care
Related
- Thinkphp vulnerabilities Recent advisories, watch this product