XML External Entity injection in WordPress - CVE-2021-29447
Published: April 25, 2021 / Updated: June 20, 2025
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
Debian Linux
wordpress (Debian package)
How to mitigate CVE-2021-29447
wordpress (Debian package) - update to 5.0.12+dfsg1-0+deb10u1
Links to Public Exploits and PoC-codes
- Exploit #11690 - CVE-2021-29447 (PoC for CVE-2021-29447) (June 20, 2025)
- Exploit #9020 - blind-xxe-controller-CVE-2021-29447 (Arbitrary file read controller based on CVE-2021-29447) (April 30, 2023)
- Exploit #8598 - wordpress-cve-2021-29447 (Exploit WordPress Media Library XML External Entity Injection (XXE) to exfiltrate files.) (November 13, 2022)
- Exploit #7057 - WordPress 5.7 - 'Media Library' XML External Entity Injection (XXE) (Authenticated) (November 25, 2021)
- Exploit #6661 - CVE-2021-29447 () (August 29, 2021)
- Exploit #5513 - CVE-2021-29447 (Wordpress XXE injection 구축 자동화 및 PoC ) (June 1, 2021)
- Exploit #5466 - wordpress_cve-2021-29447 (WordPress XXE vulnerability) (May 24, 2021)