WordPress Core < 5.7.1 - XXE Injection

Improper Restriction of XML External Entity Reference
CVE CVE-2021-29447
CVSS High (7.1)
Publicly Published April 15, 2021
Last Updated January 22, 2024
Researcher SonarSource
Description

Wordpress is an open source CMS. A user with the ability to upload files (like an Author) can exploit an XML parsing issue in the Media Library leading to XXE attacks. This requires WordPress installation to be using PHP 8. Access to internal files is possible in a successful XXE attack. This has been patched in WordPress version 5.7.1, along with the older affected versions via a minor release. We strongly recommend you keep auto-updates enabled.

References

1 affected software package

Software Type Core
Software Slug wordpress (view on wordpress.org)
Patched? Yes
Affected Version
  • 4.7 - 4.7.20
  • 4.8 - 4.8.16
  • 4.9 - 4.9.17
  • 5.0 - 5.0.12
  • 5.1 - 5.1.9
  • 5.2 - 5.2.10
  • 5.3 - 5.3.7
  • 5.4 - 5.4.5
  • 5.5 - 5.5.4
  • 5.6 - 5.6.3
  • 5.7 - 5.7.1
Patched Version
  • 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
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.