CVE-2026-135997 in Enable Media Replace Plugininfo

Summary

by MITRE • 12/05/2026

Deserialization of Untrusted Data vulnerability in ShortPixel Enable Media Replace enable-media-replace allows Object Injection.This issue affects Enable Media Replace: from n/a before 5.0.0.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 12/05/2026

The vulnerability identified as a deserialization of untrusted data flaw within the ShortPixel Enable Media Replace plugin represents a critical security risk for WordPress environments utilizing this specific media management tool. This issue, cataloged under CWE-502 which refers to Deserialization of Untrusted Data, allows an attacker to inject malicious objects into the application's processing pipeline. The vulnerability exists in versions prior to 5.0.0 and stems from the plugin's handling of user-supplied input during media file operations. When a user uploads or modifies media files through the WordPress admin interface, the plugin processes metadata and configuration data that may be manipulated by an authenticated attacker with low privileges, such as subscribers or contributors, depending on the specific site configuration and default capabilities granted to those roles.

The technical mechanism behind this vulnerability involves the improper validation of serialized PHP objects before they are unserialized for use within the application logic. In many WordPress plugins, data is often passed between functions using PHP's serialize and unserialize mechanisms to preserve complex data structures like arrays or object states. If an attacker can control the content being deserialized without sufficient integrity checks, they can craft a malicious payload that exploits gadget chains present in the WordPress core libraries or other installed plugins. This process, known as Object Injection, allows the execution of arbitrary code because the unserialization function will instantiate classes and execute their methods based on the serialized data provided by the attacker.

The operational impact of this vulnerability is severe, potentially leading to full remote code execution (RCE) on the affected server. An attacker who successfully exploits this flaw can achieve unauthorized access to sensitive files, modify website content, install backdoors for persistent access, or pivot further into the internal network if the web server has broader connectivity. This compromises the confidentiality, integrity, and availability of the entire WordPress installation. The attack vector is typically classified under ATT&CK technique T1059 Command and Scripting Interpreter, as it facilitates the execution of arbitrary commands on the host system through the exploitation of application logic rather than a traditional buffer overflow or memory corruption error.

Mitigation strategies must prioritize immediate remediation by updating the Enable Media Replace plugin to version 5.0.0 or later, where this deserialization flaw has been addressed. Until an update is applied, administrators should consider restricting user roles that have access to media upload and management features to trusted individuals only. Additionally, implementing a Web Application Firewall (WAF) with rules specifically designed to detect malicious serialized payloads can provide a layer of defense against exploitation attempts. It is also advisable to audit the server environment for any signs of compromise if there is evidence that older versions were exposed to untrusted users over an extended period. Regular security audits and adherence to secure coding practices, such as avoiding direct deserialization of user input or using strict type checking, are essential preventive measures against similar vulnerabilities in future software updates.

Responsible

Patchstack

Reservation

11/24/2026

Disclosure

12/05/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!