Technical impact
The Enable Media Replace plugin for WordPress prior to version 4.2.3 improperly deserializes stored metadata during the media replace-and-update-links routine, allowing anyone to inject and instantiate PHP objects. This leads to PHP object injection and local file inclusion of existing PHP or HTML files, and could be escalated to remote code execution if an attacker can supply or influence such files. The flaw originates from an unrestricted deserialization of user‑provided data, a classic example of incorrect handling of class instantiation during deserialization.
Affected Systems
The vulnerability affects the Enable Media Replace WordPress plugin in all releases from 4.1.4 through 4.2.2. These versions were released after a prior patch (4.1.3) that addressed the same issue but the fix was reintroduced in later releases. Site administrators using these versions should verify their plugin version and apply a patch.
Risk and Exploitability
Attackers with unauthenticated access can trigger the flaw by uploading or replacing media; however the injection requires that a user with upload privileges performs the routine media replacement. The CVSS score of 7.5 signals a high severity vulnerability, while the EPSS score of < 1% indicates a low probability of exploitation. No listing in CISA KEV indicates no widespread exploitation yet, but the potential for remote code execution remains. The attack path is straightforward: an unauthenticated adversary submits a specially crafted media replacement request that triggers object deserialization, leading to code execution.