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: 5.3 [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]
CVE-ID: CVE-2021-29447
CWE-ID: CWE-611
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

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.


Affected software

WordPress
Debian Linux
wordpress (Debian package)

How to mitigate CVE-2021-29447

Install updates from vendor's website.

WordPress - addressed in versions 4.7.20, 4.8.16, 4.9.17, 5.0.12, 5.1.9, 5.2.10, 5.3.7, 5.4.5, 5.5.4, 5.6.3, 5.7.1
wordpress (Debian package) - update to 5.0.12+dfsg1-0+deb10u1

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins