Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2018-25270

CVE-2018-25270: ThinkPHP 5.0.23 RCE Vulnerability

CVE-2018-25270 is a remote code execution vulnerability in ThinkPHP 5.0.23 that allows unauthenticated attackers to execute arbitrary PHP code. This post covers technical details, affected versions, and mitigation.

Published: April 23, 2026

CVE-2018-25270 Overview

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.

Critical Impact

This vulnerability enables unauthenticated remote code execution, allowing attackers to fully compromise web applications running ThinkPHP 5.0.23 and execute arbitrary system commands with the privileges of the web server process.

Affected Products

  • ThinkPHP 5.0.23

Discovery Timeline

  • April 22, 2026 - CVE-2018-25270 published to NVD
  • April 22, 2026 - Last updated in NVD database

Technical Details for CVE-2018-25270

Vulnerability Analysis

This remote code execution vulnerability in ThinkPHP 5.0.23 stems from improper handling of routing parameters within the framework. The vulnerability is classified under CWE-639 (Authorization Bypass Through User-Controlled Key), indicating that the framework fails to properly validate and restrict function invocations through user-supplied input.

The vulnerability is network-accessible, requiring no authentication or user interaction to exploit. Attackers can leverage this flaw to invoke arbitrary PHP functions, including those capable of executing system commands, through specially crafted HTTP requests to the index.php endpoint.

Root Cause

The root cause of this vulnerability lies in ThinkPHP's routing mechanism, which improperly processes the invokefunction controller action. The framework fails to adequately validate function parameters before execution, allowing attackers to specify arbitrary PHP functions and their arguments through URL parameters. This design flaw enables direct invocation of dangerous functions such as call_user_func_array() without proper authorization checks or input sanitization.

Attack Vector

The attack vector exploits ThinkPHP's URL routing system through the index.php endpoint. Attackers craft malicious HTTP GET requests containing parameters that specify a target function and its arguments. By manipulating the s parameter or similar routing variables, attackers can invoke PHP functions like system(), exec(), or passthru() to execute arbitrary system commands.

The exploitation requires no authentication, making any publicly accessible ThinkPHP 5.0.23 application a potential target. Successful exploitation grants attackers the ability to execute commands with the privileges of the web server user, potentially leading to complete server compromise, data exfiltration, or lateral movement within the network.

For detailed technical information and proof-of-concept examples, refer to the Exploit-DB #45978 entry and the VulnCheck Advisory on ThinkPHP.

Detection Methods for CVE-2018-25270

Indicators of Compromise

  • HTTP requests to index.php containing invokefunction or similar function invocation parameters in the URL
  • Web server logs showing requests with call_user_func_array, system, exec, passthru, or shell_exec in query strings
  • Unusual processes spawned by the web server process (e.g., www-data or apache user)
  • Evidence of reconnaissance commands such as whoami, id, or uname in web access logs

Detection Strategies

  • Deploy web application firewall (WAF) rules to block requests containing known exploitation patterns for ThinkPHP RCE
  • Implement intrusion detection signatures to identify HTTP requests with function invocation parameters targeting index.php
  • Monitor web server logs for anomalous query string patterns including PHP function names
  • Use endpoint detection and response (EDR) solutions to identify suspicious process chains originating from web server processes

Monitoring Recommendations

  • Enable detailed access logging on web servers hosting ThinkPHP applications to capture full query strings
  • Configure alerts for HTTP requests containing suspicious parameters such as function=, call_user_func, or command execution functions
  • Monitor for unexpected outbound network connections from web server processes that may indicate reverse shells
  • Implement file integrity monitoring on ThinkPHP application directories to detect unauthorized modifications

How to Mitigate CVE-2018-25270

Immediate Actions Required

  • Immediately upgrade ThinkPHP to a patched version that addresses this vulnerability
  • If immediate upgrade is not possible, take vulnerable applications offline or restrict network access
  • Review web server logs for evidence of exploitation attempts
  • Conduct a thorough security assessment of systems running ThinkPHP 5.0.23 for signs of compromise

Patch Information

Organizations should upgrade to a patched version of ThinkPHP that addresses this remote code execution vulnerability. Consult the GitHub Project Repository and ThinkPHP Official Site for the latest security updates and patched versions. Before deploying patches to production, test thoroughly in a staging environment to ensure application compatibility.

Workarounds

  • Deploy a web application firewall (WAF) with rules specifically designed to block ThinkPHP RCE exploitation patterns
  • Restrict access to the ThinkPHP application to trusted IP addresses only using network-level controls
  • Disable or remove unnecessary controllers and actions that may expose the invokefunction functionality
  • Implement strict input validation at the web server or reverse proxy level to filter dangerous query parameters
bash
# Example: Block suspicious requests at the web server level (Nginx)
# Add to server block configuration
location ~ index\.php {
    # Block requests containing dangerous function names
    if ($query_string ~* "(call_user_func|invokefunction|system|exec|passthru)") {
        return 403;
    }
    # Continue with normal PHP processing
    fastcgi_pass unix:/var/run/php/php-fpm.sock;
    include fastcgi_params;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechThinkphp

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.18%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-639
  • Technical References
  • GitHub Project Repository

  • ThinkPHP Official Site

  • Exploit-DB #45978

  • VulnCheck Advisory on ThinkPHP
  • Related CVEs
  • CVE-2025-63888: ThinkPHP 5.0.24 RCE Vulnerability

  • CVE-2025-50706: ThinkPHP RCE Vulnerability

  • CVE-2022-47945: ThinkPHP Framework RCE Vulnerability

  • CVE-2024-44902: ThinkPHP RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English