Critical Stack Buffer Overflow Vulnerability in libxml2 Package

libxml2 Updated 15 Jul 2026

Summary

14/07/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:39317: Low: libxml2 security update. Affects libxml2 versions < 2.9.13-14.el9_8.2. Fixed in 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 provides an implementation of various XML standards. It is essential for applications that require XML parsing, validation, and manipulation. The library is integral to many software projects, making its security paramount. The recent vulnerability identified poses a significant risk to systems utilizing this library, particularly in environments where user input is processed.

Vulnerability Detail

The vulnerability, identified as CVE-2025-6170, is a stack buffer overflow in the xmllint interactive shell command handling of the libxml2 library. This flaw allows an attacker to exploit the buffer overflow, potentially leading to arbitrary code execution or a crash of the application. The vulnerability arises from improper handling of user input, which can be manipulated to exceed the allocated buffer size, resulting in memory corruption.

How To Fix

Minimum fixed version

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 until the package is updated. Additionally, validate and sanitize all user inputs to mitigate the risk of exploitation.

Conclusion

The libxml2 library has a critical vulnerability that poses significant risks to applications relying on it. It is crucial to update to the latest patched version to safeguard against potential exploits. Regular monitoring and validation of dependencies are essential for maintaining security.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

CVE-2025-6170 is a vulnerability in the libxml2 library that allows for a stack buffer overflow, which can lead to arbitrary code execution.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without any signup.

The potential impacts include application crashes, unauthorized access, and execution of arbitrary code, which can compromise system security.

Yes, a patch is available in the form of an updated version of the libxml2 package, specifically version 2.9.13-14.el9_8.2.

If immediate updates are not possible, implement input validation and avoid using the vulnerable features until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

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