Critical Stack Buffer Overflow in libxml2: Security Update Required

libxml2 Updated 15 Jul 2026

Summary

15/07/2026
N/A
Yes i
Low
2.5

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback