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:39304: Low: libxml2 security update. Affects libxml2 versions < 2.12.5-10.el10_2.2. Fixed in 2.12.5-10.el10_2.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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libxml2 is a widely used development toolbox that provides the implementation of various XML standards. It is essential for applications that require XML parsing, validation, and manipulation. The library is integral to many software systems, making its security paramount. This vulnerability specifically affects versions of libxml2 prior to 2.12.5-10.el10_2.2, exposing applications to potential security risks.

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 can be exploited by an attacker to execute arbitrary code, potentially leading to unauthorized access or control over the affected system. The vulnerability arises from improper handling of user input, which can overflow the buffer and overwrite adjacent memory, causing unpredictable behavior.

How To Fix

Minimum fixed version

2.12.5-10.el10_2.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, users can avoid using the xmllint interactive shell until the package is updated. Additionally, restricting access to the application utilizing libxml2 can mitigate potential exploitation until a patch is applied.

Conclusion

The libxml2 library has a critical vulnerability that can lead to severe security risks if not addressed. Users are strongly advised to update to the latest patched version to safeguard their applications. Utilizing tools like Vulert can help in monitoring for such vulnerabilities effectively.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

A stack buffer overflow occurs when data exceeds the buffer's allocated size on the stack, leading to overwriting adjacent memory. This can cause crashes or allow attackers to execute arbitrary code.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Failing to address this vulnerability can lead to unauthorized access, data breaches, and potential system compromise, putting sensitive information at risk.

Yes, you can automate updates using package management tools like dnf or yum by scheduling regular updates in your system maintenance routine.

Detailed information about CVE-2025-6170 can be found on the official CVE page and through security advisories related to libxml2.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.12.5-10.el10_2.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