XML External Entity injection in WordPress - CVE-2021-29447

 

XML External Entity injection in WordPress - CVE-2021-29447

Published: April 25, 2021 / Updated: June 20, 2025


Vulnerability identifier: #VU52549
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:P/U:Green
CVE-ID: CVE-2021-29447
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: WordPress.ORG
Affected software:
WordPress

Detailed vulnerability description

The vulnerability allows a remote user to gain access to sensitive information.

The vulnerability exists due to insufficient validation of user-supplied XML input in the Media Library. A remote authenticated user with ability to upload files can pass a specially crafted XML code to the affected application and view contents of arbitrary files on the system or initiate requests to external systems.

Successful exploitation of the vulnerability may allow an attacker to view contents of arbitrary file on the server or perform network scanning of internal and external infrastructure.


How to mitigate CVE-2021-29447

Install updates from vendor's website.

Sources