Skip to main content
Vulnerability Database/CVE-2026-100382

CVE-2026-100382: MediaWiki ExternalData Extension RCE Vulnerability

CVE-2026-100382 is an OS command injection flaw in MediaWiki ExternalData Extension that enables remote code execution through improper input sanitization. This article covers technical details, affected versions, and mitigation strategies.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-100382 Overview

CVE-2026-100382 is an OS Command Injection vulnerability in the Wikimedia Foundation MediaWiki ExternalData Extension. The flaw affects all versions prior to 3.7 and allows unauthenticated attackers to execute arbitrary operating system commands on the host running the extension. The ExternalData Extension lets MediaWiki wikis retrieve data from external sources, and improper neutralization of special elements in command-building logic enables injection [CWE-78]. Attackers can leverage this issue over the network without authentication or user interaction, placing wiki infrastructure, hosted content, and connected systems at risk of full compromise.

Critical Impact

Unauthenticated remote attackers can execute arbitrary OS commands on servers running vulnerable MediaWiki ExternalData Extension deployments, leading to full host takeover.

Affected Products

  • Wikimedia Foundation MediaWiki ExternalData Extension versions before 3.7
  • MediaWiki installations with the ExternalData Extension enabled
  • Downstream wiki platforms bundling the ExternalData Extension

Discovery Timeline

  • 2026-09-25 - CVE-2026-100382 published to NVD
  • 2026-09-28 - Last updated in NVD database

Technical Details for CVE-2026-100382

Vulnerability Analysis

The ExternalData Extension provides parser functions and Lua bindings that fetch and parse data from external sources, including local commands and files. The vulnerability stems from improper neutralization of special shell metacharacters when user-controllable input is incorporated into OS command invocations. Attackers can inject shell operators such as ;, &&, |, or backticks to append arbitrary commands to the intended process execution. Successful exploitation yields code execution in the context of the web server process, typically www-data or an equivalent service account. From that foothold, attackers can read wiki database credentials in LocalSettings.php, pivot to backend services, deploy webshells, or stage ransomware across connected infrastructure.

Root Cause

The root cause is classified under [CWE-78]: Improper Neutralization of Special Elements used in an OS Command. Command-constructing code paths in the extension concatenate externally influenced values into shell command strings without using parameterized execution APIs or applying strict allowlist validation. The upstream fix is tracked in the Wikimedia Gerrit Commit and the Wikimedia Phabricator Task.

Attack Vector

The attack vector is network-based and requires no privileges or user interaction. An attacker crafts a wiki request, parser function invocation, or API call that reaches a vulnerable ExternalData code path and supplies input containing shell metacharacters. The server then invokes a shell that interprets the injected payload, executing attacker-controlled commands. Public-facing MediaWiki instances with anonymous editing or open API endpoints are the highest-risk targets.

No verified public proof-of-concept code is available at this time. Refer to the Gerrit commit and Phabricator task above for authoritative technical details.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-100382

Indicators of Compromise

  • Web server processes spawning unexpected child processes such as /bin/sh, curl, wget, nc, or python originating from the MediaWiki PHP interpreter.
  • Outbound network connections from the wiki host to unfamiliar IP addresses shortly after HTTP requests invoking ExternalData parser functions.
  • Anomalous entries in MediaWiki parser logs or web access logs referencing ExternalData functions combined with shell metacharacters (;, |, &&, backticks).
  • New or modified files in web-accessible directories, including PHP files not shipped by the official MediaWiki or extension distribution.

Detection Strategies

  • Deploy endpoint detection and response (EDR) rules that flag the web server user spawning shells or interpreters.
  • Monitor HTTP request bodies and query strings for shell metacharacters targeting known ExternalData endpoints and parser hooks.
  • Correlate process-execution telemetry with web access logs to identify request-to-exec chains indicative of command injection.

Monitoring Recommendations

  • Ingest MediaWiki, web server, and host process telemetry into a centralized analytics platform for correlation and historical hunting.
  • Alert on new outbound connections initiated by PHP-FPM, Apache, or Nginx worker processes to non-approved destinations.
  • Track installed extension versions across the fleet and alert when any instance of ExternalData remains below version 3.7.

How to Mitigate CVE-2026-100382

Immediate Actions Required

  • Upgrade the MediaWiki ExternalData Extension to version 3.7 or later on every affected wiki installation.
  • Audit web server and database hosts for signs of post-exploitation activity, including unexpected processes, cron jobs, and new accounts.
  • Rotate any credentials, API tokens, or secrets stored on or accessible from the wiki server if exploitation cannot be ruled out.
  • Restrict anonymous editing and API access to trusted networks until the patch is deployed.

Patch Information

The fix is committed upstream in Wikimedia Gerrit change 1326012 and tracked under Phabricator task T434961. Administrators should install ExternalData Extension version 3.7 or later via composer, git, or the extension download page, then run php maintenance/update.php as required by MediaWiki upgrade procedures.

Workarounds

  • Disable the ExternalData Extension by removing or commenting out its wfLoadExtension('ExternalData'); entry in LocalSettings.php until patching is complete.
  • Restrict which parser functions and data sources are enabled through ExternalData configuration variables, limiting command-executing functionality.
  • Place the wiki behind a web application firewall (WAF) rule set that blocks shell metacharacter patterns in ExternalData-related parameters.
bash
# Configuration example: disable the ExternalData Extension pending patch
# Edit LocalSettings.php and comment out the extension load line
# wfLoadExtension( 'ExternalData' );

# After upgrading to >= 3.7, re-enable and run schema updates
php maintenance/update.php --quick

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.