CVE-2021-29447
NixOS vulnerability analysis and mitigation

Overview

A high-severity XML External Entity (XXE) vulnerability (CVE-2021-29447) was discovered in WordPress versions 5.6 to 5.7. The vulnerability affects WordPress installations running on PHP 8 and allows authenticated users with file upload permissions (such as Authors) to exploit an XML parsing issue in the Media Library. The vulnerability was discovered in early 2021 and was patched in WordPress version 5.7.1, released on April 14, 2021 (WordPress Security, GitHub Advisory).

Technical details

The vulnerability exists in WordPress's use of the getID3 library for parsing metadata from media files. When parsing WAVE audio files' iXML chunks, the code uses simplexmlloadstring() with the LIBXMLNOENT flag, which enables entity substitution. In PHP 8, the previous protection mechanism (libxmldisableentityloader()) was deprecated because newer PHP versions use Libxml2 v2.9+ which disables external entity fetching by default. However, the LIBXML_NOENT flag explicitly enables entity substitution, making XXE attacks possible again (Sonar Blog).

Impact

The vulnerability allows attackers to achieve arbitrary file disclosure, potentially exposing sensitive files such as wp-config.php which contains database credentials and other configuration details. Additionally, it enables Server-Side Request Forgery (SSRF), allowing attackers to make HTTP requests on behalf of the WordPress installation, which could have serious implications depending on the environment (SecurityWeek, Sonar Blog).

Mitigation and workarounds

The vulnerability was patched in WordPress version 5.7.1, along with backported fixes for older affected versions (5.6.x). The fix reintroduced the libxmldisableentity_loader() function call even for PHP 8, using the error suppressing operator @ to avoid deprecation warnings. Users are strongly recommended to update to the patched versions and keep auto-updates enabled (GitHub Advisory, Debian Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management