Critical Stack Buffer Overflow in libxml2: Security Update Required
Summary
RLSA-2026:39317: Low: libxml2 security update. Affects libxml2 versions < 0:2.9.13-14.el9_8.2. Fixed in 0:2.9.13-14.el9_8.2. 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 XML parsing and manipulation. It is integral to many applications and systems that rely on XML data formats. However, vulnerabilities in this library can lead to severe security risks, particularly when handling untrusted XML input.
Vulnerability Detail
The vulnerability identified as CVE-2025-6170 is a stack buffer overflow in the xmllint interactive shell command handling of libxml2. This flaw allows an attacker to exploit the buffer overflow, potentially leading to arbitrary code execution or crashes. The vulnerability arises from improper handling of user input, making it critical for developers and system administrators to address it promptly to prevent exploitation.
How To Fix
Minimum fixed version
0:2.9.13-14.el9_8.2
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
As a temporary workaround, avoid using the xmllint interactive shell command with untrusted XML inputs until the package is updated. This can help mitigate the risk of exploitation until a proper fix is applied.
Conclusion
The stack buffer overflow vulnerability in libxml2 (CVE-2025-6170) poses a serious risk to applications relying on this library. It is crucial to update to the latest patched version to mitigate potential exploitation. Users should also consider using tools like Vulert to monitor for vulnerabilities in their software.
See every vulnerability recorded for libxml2 →
FAQ
CVE-2025-6170 is a security vulnerability in libxml2 that allows for a stack buffer overflow, potentially leading to code execution.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
The vulnerability can lead to arbitrary code execution, crashes, or unauthorized access to sensitive data, posing significant security risks.
Yes, a patched version of libxml2 is available. Updating to version 0:2.9.13-14.el9_8.2 or later will resolve the issue.
If you cannot update immediately, avoid using the xmllint interactive shell command with untrusted XML inputs as a temporary measure.
Related vulnerabilities
Recent vulnerabilities recorded for libxml2.