A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • 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
    • 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
      Digital Forensics, IRR & Breach Readiness
    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
    • 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-2025-51958

CVE-2025-51958: DokuWiki runcommand Plugin RCE Vulnerability

CVE-2025-51958 is a remote code execution vulnerability in the DokuWiki runcommand plugin that allows unauthenticated attackers to execute arbitrary system commands. This article covers technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2025-51958 Overview

CVE-2025-51958 is a critical command injection vulnerability in the aelsantex runcommand plugin (version 2014-04-01) for DokuWiki. This vulnerability allows unauthenticated remote attackers to execute arbitrary system commands on the underlying server through the lib/plugins/runcommand/postaction.php endpoint. The lack of authentication combined with insufficient input validation creates a severe security risk for any DokuWiki installation running this plugin.

Critical Impact

Unauthenticated attackers can execute arbitrary system commands on vulnerable DokuWiki servers, potentially leading to complete system compromise, data exfiltration, and lateral movement within the network.

Affected Products

  • aelsantex runcommand plugin version 2014-04-01 for DokuWiki
  • DokuWiki installations with the runcommand plugin enabled
  • All systems running vulnerable versions of the runcommand plugin

Discovery Timeline

  • 2026-01-30 - CVE-2025-51958 published to NVD
  • 2026-02-04 - Last updated in NVD database

Technical Details for CVE-2025-51958

Vulnerability Analysis

This vulnerability is classified as OS Command Injection (CWE-78), which occurs when an application passes unsafe user-supplied data to a system shell. In the case of the DokuWiki runcommand plugin, the postaction.php script fails to properly sanitize user input before passing it to system command execution functions.

The critical flaw lies in the plugin's design, which exposes a publicly accessible PHP endpoint that processes user-controlled data without authentication checks. An attacker can craft malicious HTTP requests to the vulnerable endpoint, injecting shell metacharacters and arbitrary commands that are then executed with the privileges of the web server process.

The network-accessible nature of this vulnerability means attackers can exploit it remotely without any prior authentication, making it particularly dangerous for internet-facing DokuWiki installations.

Root Cause

The root cause of this vulnerability stems from two fundamental security failures in the runcommand plugin:

  1. Missing Authentication: The postaction.php endpoint does not verify user identity or session validity before processing requests, allowing anonymous access to dangerous functionality.

  2. Insufficient Input Validation: User-supplied parameters are passed directly to system command execution without proper sanitization, escaping, or allowlist validation, enabling shell metacharacter injection.

Attack Vector

The attack is conducted over the network by sending specially crafted HTTP requests to the vulnerable lib/plugins/runcommand/postaction.php endpoint. An attacker can inject shell commands using common techniques such as command chaining operators (;, &&, ||), command substitution ($(...) or backticks), or pipe redirection.

A successful exploitation grants the attacker the ability to execute arbitrary commands with the privileges of the web server user (typically www-data or apache). This can lead to reverse shell establishment, sensitive file access, data exfiltration, malware installation, or pivoting to other systems on the network.

For technical details on the vulnerability, refer to the GitHub Gist containing analysis and the runcommand plugin repository.

Detection Methods for CVE-2025-51958

Indicators of Compromise

  • Suspicious HTTP requests to /lib/plugins/runcommand/postaction.php with shell metacharacters in parameters
  • Unexpected child processes spawned by the web server process (e.g., sh, bash, wget, curl, nc)
  • Outbound network connections from the web server to unusual destinations
  • Web server access logs showing repeated requests to the runcommand plugin endpoint
  • Creation of unexpected files in web-accessible directories or /tmp

Detection Strategies

  • Configure Web Application Firewall (WAF) rules to block requests containing shell metacharacters targeting the runcommand plugin path
  • Implement file integrity monitoring on the DokuWiki installation directory to detect unauthorized modifications
  • Monitor process execution on web servers for anomalous command execution patterns
  • Review Apache/Nginx access logs for requests to postaction.php with suspicious query parameters or POST data

Monitoring Recommendations

  • Enable detailed logging for all HTTP requests to the DokuWiki plugins directory
  • Deploy endpoint detection and response (EDR) solutions to monitor web server process behavior
  • Configure alerts for outbound connections from web server processes to non-standard ports
  • Implement network traffic analysis to detect command and control communication patterns

How to Mitigate CVE-2025-51958

Immediate Actions Required

  • Disable or remove the runcommand plugin from all DokuWiki installations immediately
  • Audit DokuWiki servers for signs of compromise, including unauthorized files, processes, or network connections
  • Review web server access logs for exploitation attempts targeting the vulnerable endpoint
  • Isolate potentially compromised systems pending forensic analysis
  • Reset credentials for any accounts accessible from the affected server

Patch Information

As of the last update, no official patch has been released for this vulnerability. The runcommand plugin (version 2014-04-01) appears to be unmaintained. Administrators should consider this plugin deprecated and seek alternative solutions for command execution functionality within DokuWiki.

For the latest information, refer to the official DokuWiki plugin page and the GitHub repository.

Workarounds

  • Remove the runcommand plugin entirely from DokuWiki installations using rm -rf lib/plugins/runcommand/
  • If removal is not immediately possible, block access to the plugin directory via web server configuration
  • Implement network-level restrictions to limit access to the DokuWiki admin interface
  • Deploy a Web Application Firewall with rules to block command injection patterns
bash
# Apache configuration to block access to the vulnerable plugin
<Directory "/var/www/dokuwiki/lib/plugins/runcommand">
    Require all denied
</Directory>

# Nginx configuration alternative
location /lib/plugins/runcommand {
    deny all;
    return 404;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDokuwiki

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Gist Code Snippet

  • GitHub RunCommand Repository

  • DokuWiki RunCommand Plugin
  • Related CVEs
  • CVE-2019-25338: DokuWiki Username Enumeration Vulnerability
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
  • English
  • 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