Critical Security Flaw in libxml2: Heap and Stack Buffer Overflows

libxml2 Updated 26 Sep 2026

Summary

25/09/2026
N/A
Yes i
High
8.5

RLSA-2026:71585: Important: libxml2 security update. Affects libxml2 versions < 0:2.9.13-14.el9_8.5. Fixed in 0:2.9.13-14.el9_8.5. 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 implements various XML standards, enabling applications to parse and manipulate XML documents efficiently. It is integral to many software systems, providing essential functionalities for XML processing. However, recent vulnerabilities have exposed libxml2 to significant security risks, necessitating immediate attention from developers and system administrators.

Vulnerability Detail

The libxml2 library has been found to contain multiple vulnerabilities, including heap-based and stack-based buffer overflows, which can lead to arbitrary code execution. Specifically, CVE-2026-86138 allows attackers to exploit a heap-based buffer overflow, while CVE-2026-86140 involves a stack-based buffer overflow in the xmlSnprintfElements function. Additionally, integer overflow issues in write callbacks (CVE-2026-86143) and improper parseFlags propagation (CVE-2026-86144) can result in data integrity issues, information disclosure, or denial of service. These vulnerabilities pose a critical risk to applications relying on libxml2, with a CVSS score of 8.5 indicating their severity.

How To Fix

Minimum fixed version

0:2.9.13-14.el9_8.5

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 measure, users can limit the exposure of their applications by implementing strict input validation and sanitization for XML data. This can help mitigate the risk of exploitation until the package is updated.

Conclusion

The vulnerabilities found in libxml2 present significant risks that can lead to arbitrary code execution and data integrity issues. It is crucial for users to update to the latest patched version to safeguard their applications. Utilizing tools like Vulert can aid in monitoring and identifying vulnerabilities effectively.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

libxml2 is a development library that provides tools for parsing and manipulating XML documents, widely used in various software applications.

The vulnerabilities include heap-based and stack-based buffer overflows, integer overflow issues, and improper parseFlags propagation, leading to potential arbitrary code execution and data integrity problems.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By uploading your manifest file, you can check for vulnerabilities without needing to install any software.

The CVSS score for the vulnerabilities in libxml2 is 8.5, indicating a critical level of severity.

If an immediate update is not possible, implement strict input validation and sanitization for XML data to reduce the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

0:2.9.13-14.el9_8.5

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