CVE-2018-25270 in Thinkphp
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Thinkphp | Thinkphp | 5.0.23 5.1.31 ≥ 5.0.0, < 5.0.23 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Reported · reference |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2018-25270 |
|---|---|
| BreachSpider ID | BS-2026-GLOBAL-128891-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2026-04-22 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-639: Authorization Bypass Through User-Controlled Key (IDOR)
Software uses a user-supplied key to access resources without verifying authorization for that specific resource.
Analysis AI-written, not human-reviewed
ThinkPHP 5.0.23 contains a critical remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary PHP code, posing a significant risk to the integrity and availability of affected systems.
Attackers can exploit this vulnerability by crafting requests to the index.php endpoint with malicious function parameters, enabling them to invoke functions and execute system commands with the privileges of the application.
Questions
What is CVE-2018-25270?
ThinkPHP 5.0.23 contains a critical remote code execution vulnerability that allows unauthenticated attackers to execute arbitrary PHP code, posing a significant risk to the integrity and availability of affected systems.
What is the CVSS score for CVE-2018-25270?
CVE-2018-25270 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.7%.
Is CVE-2018-25270 actively exploited?
Public exploit available for CVE-2018-25270. Exploitation risk elevated.
How do I remediate CVE-2018-25270?
Priority: IMMEDIATE.
What systems are affected by CVE-2018-25270?
CVE-2018-25270 affects Thinkphp Thinkphp.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Thinkphp","product":"Thinkphp","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.