CVE-2026-132674 in MediaWikiinfo

Summary

by MITRE • 11/25/2026

Uncontrolled Resource Consumption vulnerability in Wikimedia Foundation MediaWiki. This vulnerability is associated with program files includes/Media/PNGMetadataExtractor.php. This issue affects MediaWiki: from 1.43.0 before 1.43.12, from 1.45.0 before 1.45.7, from 1.46.0 before 1.46.3, 1.47.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/25/2026

The Wikimedia Foundation has addressed a critical uncontrolled resource consumption vulnerability within the MediaWiki software ecosystem, specifically located in the includes/Media/PNGMetadataExtractor.php module. This flaw impacts multiple supported versions of the platform, including all releases from version 1.43.0 up to but not including 1.43.12, as well as versions ranging from 1.45.0 through 1.45.6 and 1.46.0 through 1.46.2. Additionally, the vulnerability persists in version 1.47, indicating a systemic issue within the PNG metadata extraction logic that has not been fully resolved across recent major releases. The core of this vulnerability lies in how MediaWiki processes image files uploaded by users or imported into the system. When an administrator or user uploads a Portable Network Graphics file, the platform attempts to extract embedded metadata such as EXIF data for display purposes and internal indexing.

The technical flaw stems from insufficient validation and resource management controls within the PNGMetadataExtractor class. Specifically, certain malformed or specially crafted PNG files can trigger excessive computational overhead during the parsing of chunks or metadata sections. This behavior aligns with CWE-400, which describes Uncontrolled Resource Consumption, where a software application does not properly control the allocation and maintenance of limited system resources, leading to exhaustion conditions. In this context, the parser may enter an infinite loop or perform computationally expensive operations when encountering specific structural anomalies in the PNG file header or chunk data structures. This is often achieved through deeply nested recursive calls or inefficient regular expression matching that exhibits catastrophic backtracking behavior on adversarial inputs.

From a security architecture perspective, this vulnerability maps directly to MITRE ATT&CK technique T1496, Resource Hijacking, where an attacker consumes significant system resources such as CPU cycles and memory without necessarily gaining direct access to the underlying operating system or data. The operational impact of this flaw is primarily Denial of Service against the MediaWiki instance. Since MediaWiki instances often handle high volumes of concurrent requests for image processing during upload operations, a single maliciously crafted PNG file can consume disproportionate server resources. This leads to increased latency for all users, potential timeouts on other pages, and in severe cases, complete unavailability of the web service if the resource exhaustion is sustained or amplified through multiple simultaneous uploads. For Wikimedia Foundation sites which serve billions of requests monthly, even a minor increase in CPU load per image upload can have significant scalability implications.

The vulnerability highlights the risks associated with processing user-supplied binary data without strict constraints on recursion depth, memory usage limits, and execution time for parsing operations. Attackers do not need authentication to exploit this issue if they are able to trigger an image preview or thumbnail generation process using a crafted file, which is often possible even in guest modes depending on the specific MediaWiki configuration and extension setup. The persistence of this flaw across multiple major version branches suggests that previous patches may have addressed only partial aspects of the parsing logic without implementing comprehensive resource limits for all code paths within the PNG metadata extractor.

Mitigation strategies must prioritize immediate patching to the latest stable release where these issues are resolved, specifically MediaWiki 1.43.12 or later, 1.45.7 or later, and ensuring that version 1.46 is updated beyond 1.46.3 if applicable, while monitoring for fixes in the 1.47 branch. In environments where immediate patching is not feasible due to operational constraints, administrators should implement strict input validation at the web server level using Web Application Firewalls to block uploads containing suspicious binary patterns associated with PNG chunk abuse. Additionally, configuring PHP limits such as max_execution_time and memory_limit can provide a secondary layer of defense by terminating long-running or resource-intensive processes before they exhaust system resources. It is also recommended to disable unnecessary image metadata extraction features if the platform does not rely on EXIF data for functionality, thereby reducing the attack surface exposed by this specific module. Regular security audits focusing on file upload handlers and media processing libraries are essential to prevent similar uncontrolled consumption vulnerabilities in other parts of the application stack.

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!