CVE-2018-25270 Details
Description
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.
A remote code execution vulnerability exists in ThinkPHP versions 5.0.23 and 5.1.31. This vulnerability allows unauthenticated attackers to execute arbitrary PHP code by invoking functions through the routing parameter. Exploitation involves crafting requests to the index.php endpoint with malicious function parameters, which are then executed with application privileges.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/top-think/framework/ | [email protected] | Product |
| https://thinkphp.cn | [email protected] | Broken Link |
| https://www.exploit-db.com/exploits/45978 | [email protected] | ExploitThird Party AdvisoryVDB Entry |
| https://www.vulncheck.com/advisories/thinkphp-remote-code-execution-via-invokefunction | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-639 | Authorization Bypass Through User-Controlled Key | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| thinkphp thinkphp | >= 5.0.0, < 5.0.23 5.1.31 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 27, 2026 | Initial Analysis | [email protected] |
| Apr 22, 2026 | New CVE Received | [email protected] |