Critical severity · published Apr 22, 2026
CVE-2018-25270
ThinkPHP 5.0.23 Remote Code Execution via invokefunction
9.8
CVSS
0.9%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.9% · higher than 59% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
TH
ThinkPHP · Thinkphp
5.0.23; 5.1.31 · source: vendor, NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-25270
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-25270
Product
https://github.com/top-think/framework/
Broken Link
https://thinkphp.cn
Exploit
https://www.exploit-db.com/exploits/45978
Third Party Advisory
https://www.vulncheck.com/advisories/thinkphp-remote-code-execution-via-invokefunction
More from ThinkPHP
8.8
CVE-2019-9082
ThinkPHP Remote Code Execution Vulnerability
9.8
CVE-2025-63888
The read function in file thinkphp\library\think\template\driver\File.php in ThinkPHP 5.0.24 contains a remote code execution vulnerability
9.8
CVE-2025-50706
An issue in thinkphp v.5.1 allows a remote attacker to execute arbitrary code via the routecheck function
9.8
CVE-2025-50707
An issue in thinkphp3 v.3.2.5 allows a remote attacker to execute arbitrary code via the index.php component
9.8
CVE-2024-48112
A deserialization vulnerability in the component \controller\Index.php of Thinkphp v6.1.3 to v8.0.4 allows attackers to execute arbitrary code
