Skip to main content

MediaWiki CVE-2026-58025

| EUVDEUVD-2026-41031 MEDIUM
Deserialization of Untrusted Data (CWE-502)
2026-07-01 wikimedia-foundation GHSA-28rr-rpqp-g8c8
5.9
CVSS 4.0 · Vendor: wikimedia-foundation
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain high-privilege MediaWiki import credentials
  2. Delivery
    Craft XML import file with serialized PHP gadget chain
  3. Exploit
    Submit malicious file via Special:Import
  4. Execution
    WikiImporter/WikiRevision deserializes payload
  5. Persist
    PHP object injection triggers unintended class instantiation
  6. Impact
    Achieve high-integrity data manipulation or code execution on server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated MediaWiki account holding high-privilege import permissions - specifically membership in the 'import' or 'importupload' user groups, which are not granted to standard MediaWiki users by default and must be explicitly assigned by a bureaucrat or sysop. The attacker must be able to submit a crafted wiki XML import file (via Special:Import or the API equivalent) that contains malicious serialized PHP data targeting the WikiImporter.php or WikiRevision.php deserialization path, or separately trigger the LogEntryBase.php deserialization path through log manipulation. AC:H indicates a specific gadget chain must be identified and crafted for the target's PHP class environment and extension set - not a trivial precondition. Exploitation is limited by: (1) mandatory high-privilege authentication (PR:H), ruling out unauthenticated or low-privilege scenarios; (2) high attack complexity requiring tailored gadget chain research; (3) the absence of any known public exploit or PoC code at time of analysis. The CVSS vector provides no indication that default-configuration exploitation is possible without at minimum administrator-level access.

Impact

The CVSS 4.0 score of 5.9 with vector AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:H/VA:L/SC:L/SI:L/SA:L reflects a vulnerability with meaningful integrity impact but substantially constrained real-world exploitability. The PR:H rating is the dominant risk limiter: exploitation is restricted to users holding high-privilege MediaWiki roles (typically those in the 'import' or 'importupload' groups, which are not granted to ordinary users), greatly narrowing the viable attacker pool to insiders or accounts compromised after authentication. AC:H further constrains the attack, indicating that beyond obtaining credentials, the attacker must develop or obtain a working PHP gadget chain tailored to the target installation's class environment and extensions. The VI:H (High integrity impact) is noteworthy - successful exploitation can meaningfully alter wiki content or application state. Subsequent-system impacts (SC:L/SI:L/SA:L) suggest limited spillover beyond the MediaWiki application itself. No EPSS score was provided in the input data; no KEV listing exists; no public POC has been identified. Despite deserialization vulnerabilities historically being pathways to RCE, the combination of PR:H and AC:H puts this in a 'real but not urgent for most deployments' category - most at risk are multi-tenant wiki farms where admin-level accounts may be less tightly controlled.

Exploit ScenarioDerived

A malicious or compromised MediaWiki administrator with import privileges crafts a wiki XML export file containing embedded serialized PHP objects targeting a viable gadget chain within the MediaWiki codebase or its installed PHP dependencies. The attacker uploads this file via Special:Import; WikiImporter.php processes the file and WikiRevision.php reconstructs revision data, triggering deserialization of the malicious payload and allowing the attacker to manipulate application state or achieve code execution on the server. No public exploit code exists at time of analysis, meaning exploitation requires original PHP gadget-chain research against the specific target environment.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 01, 2026

Deserialization of untrusted data in MediaWiki's wiki import subsystem and logging infrastructure exposes installations to PHP object injection, with high integrity impact on affected systems. Specifically, the WikiImporter, WikiRevision, and LogEntryBase components process attacker-controlled serialized data without sufficient validation, allowing a high-privileged authenticated user to trigger unintended object instantiation or code execution paths. No active exploitation (CISA KEV) or public proof-of-concept has been identified at time of analysis; however, vendor-confirmed patches are available in releases 1.43.9, 1.44.6, 1.45.4, and 1.46.0.

RemediationAI

Upgrade MediaWiki to the appropriate patched release for your branch: 1.43.9 (for 1.43.x deployments), 1.44.6 (for 1.44.x), 1.45.4 (for 1.45.x), or 1.46.0 (for main/1.46.x), as confirmed by the vendor at https://phabricator.wikimedia.org/T422244. As a compensating control pending upgrade, restrict or revoke the 'import' and 'importupload' user rights in LocalSettings.php using $wgGroupPermissions to ensure only the minimum necessary set of trusted administrators can trigger the WikiImporter code path - this eliminates the most direct attack vector but does not address the LogEntryBase.php path if it is independently exploitable. Disabling the import feature entirely (removing import permissions from all groups) prevents exploitation via the import subsystem with no impact on normal wiki editing, but will block legitimate wiki content migration workflows. Monitor for unexpected deserialization-related PHP errors or unusual import activity in server logs as a detective control.

Affected VersionsENISA

mediawiki * <1.46.0, 1.45.4, 1.44.6, 1.43.9

Affected Packages

euvd mediawiki_1_46_0_1_45_4_1_44_6 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MediaWiki is the PHP-based wiki engine underpinning Wikipedia and tens of thousands of public and private wiki deployments. The vulnerability is rooted in CWE-502 (Deserialization of Untrusted Data), a class of flaw where PHP's object deserialization mechanisms (e.g., unserialize()) process attacker-influenced input without sanitization, enabling PHP Object Injection - a prerequisite for exploiting gadget chains in the loaded codebase. The three implicated files reveal the attack surface: includes/Import/WikiImporter.php orchestrates the parsing and processing of XML wiki export files; includes/Import/WikiRevision.php handles individual revision objects reconstructed from import data; and includes/Logging/LogEntryBase.php is the base class for MediaWiki's structured log system. The CPE (cpe:2.3:a:wikimedia_foundation:mediawiki:*:*:*:*:*:*:*:*) confirms all platform variants are affected. The root cause is likely that serialized PHP data embedded in import XML or log entries is passed to an unsafe deserialization function, allowing instantiation of arbitrary PHP objects from the application's class hierarchy.

Know when Mediawiki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (wikimedia-foundation) PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:H/VA:L/SC:L/SI:L/SA:L
vuln.today AI 7.2 HIGH

PR:H required for import privileges; AC:H for gadget-chain crafting; S:C because PHP deserialization can affect the underlying server beyond the MediaWiki application boundary.

3.1 AV:N/AC:H/PR:H/UI:N/S:C/C:L/I:H/A:L
4.0 AV:N/AC:H/AT:N/PR:H/UI:N/VC:L/VI:H/VA:L/SC:L/SI:L/SA:L

Primary rating from Vendor (wikimedia-foundation).

CVSS VectorVendor: wikimedia-foundation

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
High
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
Low

Lifecycle Timeline

1
Patch available
Jul 01, 2026 - 17:01 EUVD

DescriptionCVE.org

Deserialization of untrusted data vulnerability in Wikimedia Foundation MediaWiki.

This vulnerability is associated with program files includes/Import/WikiImporter.Php, includes/Import/WikiRevision.Php, includes/Logging/LogEntryBase.Php.

This issue affects MediaWiki: from * before 1.46.0, 1.45.4, 1.44.6, 1.43.9.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
High
powers Wikipedia and thousands of public and enterprise wikis globally
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

CVE-2014-1610 MEDIUM POC
6.0 Jan 30

MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is

CVE-2015-8009 CRITICAL POC
9.8 Jul 25

The MWOAuthDataStore::lookup_token function in Extension:OAuth for MediaWiki 1.25.x before 1.25.3, 1.24.x before 1.24.4,

CVE-2023-37303 CRITICAL POC
9.8 Jun 30

An issue was discovered in the CheckUser extension for MediaWiki through 1.39.3. Rated critical severity (CVSS 9.8), thi

CVE-2022-29906 CRITICAL POC
9.8 Apr 29

The admin API module in the QuizGame extension for MediaWiki through 1.37.2 (before 665e33a68f6fa1167df99c0aa18ed0157cdf

CVE-2022-29904 CRITICAL POC
9.8 Apr 29

The SemanticDrilldown extension for MediaWiki through 1.37.2 (before e688bdba6434591b5dff689a45e4d53459954773) allows SQ

CVE-2022-28206 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2022-28205 CRITICAL POC
9.8 Mar 30

An issue was discovered in MediaWiki through 1.37.1. Rated critical severity (CVSS 9.8), this vulnerability is remotely

CVE-2021-36128 CRITICAL POC
9.8 Jul 02

An issue was discovered in the CentralAuth extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2021-36126 CRITICAL POC
9.8 Jul 02

An issue was discovered in the AbuseFilter extension in MediaWiki through 1.36. Rated critical severity (CVSS 9.8), this

CVE-2017-8809 CRITICAL
9.8 Nov 15

api.php in MediaWiki before 1.27.4, 1.28.x before 1.28.3, and 1.29.x before 1.29.2 has a Reflected File Download vulnera

CVE-2024-47849 HIGH POC
8.8 Oct 05

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in The Wikimedia Foun

CVE-2021-36132 HIGH POC
8.8 Jul 02

An issue was discovered in the FileImporter extension in MediaWiki through 1.36. Rated high severity (CVSS 8.8), this vu

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy