Security Vulnerability in libxml2: Infinite Recursion Issue
Summary
ALSA-2025:22376: Moderate: libxml2 security update. Affects libxml2 versions < 2.9.13-14.el9_7. Fixed in 2.9.13-14.el9_7. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
libxml2 is a widely used development toolbox that implements various XML standards, providing essential functionalities for parsing and manipulating XML documents. It is a critical library for many applications, including web browsers, XML editors, and data processing tools. The library's robustness and versatility make it a popular choice among developers. However, it is susceptible to security vulnerabilities that can compromise the integrity and performance of applications relying on it.
Vulnerability Detail
The vulnerability identified as CVE-2025-9714 in libxml2 is an infinite recursion issue occurring in the exsltDynMapFunction function within the libexslt/dynamic.c file. This flaw can lead to a denial of service (DoS) condition, where an application using libxml2 may become unresponsive or crash due to excessive resource consumption. The vulnerability arises from improper handling of certain XML inputs, allowing attackers to exploit this weakness and disrupt normal operations.
How To Fix
Minimum fixed version
2.9.13-14.el9_7
This is the first release that contains the fix.
sudo dnf update libxml2
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
If immediate updating is not feasible, consider implementing input validation to filter out potentially malicious XML data that could trigger the infinite recursion. Additionally, monitoring application performance and resource usage can help mitigate the impact of this vulnerability until a proper fix is applied.
Conclusion
The libxml2 library has a critical vulnerability (CVE-2025-9714) that can lead to infinite recursion and denial of service. It is crucial for users to update to the patched version to mitigate risks. Implementing input validation and monitoring can serve as temporary measures until the update is applied.
See every vulnerability recorded for libxml2 →
FAQ
CVE-2025-9714 is a security vulnerability in the libxml2 library that allows for infinite recursion, potentially leading to denial of service.
You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.
The primary consequence is a denial of service, where applications may become unresponsive or crash due to excessive resource consumption.
It is recommended to regularly check for updates and apply security patches as soon as they are released to protect against vulnerabilities.
Yes, Vulert allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file, without requiring code access or installation.
Related vulnerabilities
Recent vulnerabilities recorded for libxml2.