XML External Entity (XXE) Injection Affecting libxml2 package, versions <0:2.12.5-5.el10_0


Severity

Recommended
0.0
critical
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.44% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about XML External Entity (XXE) Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL10-LIBXML2-10296863
  • published3 Jun 2025
  • disclosed23 Dec 2024

Introduced: 23 Dec 2024

CVE-2024-40896  (opens in a new tab)
CWE-611  (opens in a new tab)

How to fix?

Upgrade RHEL:10 libxml2 to version 0:2.12.5-5.el10_0 or higher.
This issue was patched in RHBA-2025:6597.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libxml2 package and not the libxml2 package as distributed by RHEL. See How to fix? for RHEL:10 relevant fixed versions and status.

In libxml2 2.11 before 2.11.9, 2.12 before 2.12.9, and 2.13 before 2.13.3, the SAX parser can produce events for external entities even if custom SAX handlers try to override entity content (by setting "checked"). This makes classic XXE attacks possible.

CVSS Base Scores

version 3.1