CVE-2018-25270

published 22 Apr 2026 · updated 22 Apr 2026

ThinkPHP 5.0.23 Remote Code Execution via invokefunction

10.0CriticalCVSS 9.8EPSS 1%1 public exploits

A public exploit exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
ThinkPHPThinkPHP=5.0.23, =5.1.31

Exploit evidence

1 public sources

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in ThinkPHP, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2018-25270 severity on Zeptric[![CVE-2018-25270](https://zeptric.io/badge/cve/CVE-2018-25270.svg)](https://zeptric.io/cve/CVE-2018-25270)