Critical Security Flaw in libxml2: Heap and Stack Buffer Overflows

libxml2 Updated 25 Sep 2026

Summary

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

RLSA-2026:71586: Important: libxml2 security update. Affects libxml2 versions < 0:2.12.5-10.el10_2.4. Fixed in 0:2.12.5-10.el10_2.4. 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, enabling applications to parse and manipulate XML documents efficiently. It is integral to many software systems due to its robustness and flexibility. However, recent vulnerabilities have exposed it to significant security risks, particularly concerning memory management issues that can lead to arbitrary code execution and data integrity problems.

Vulnerability Detail

The libxml2 library has been found to contain multiple vulnerabilities, including heap-based and stack-based buffer overflows. These vulnerabilities arise from improper handling of memory, allowing attackers to execute arbitrary code or cause data corruption. Specifically, CVE-2026-86138 and CVE-2026-86140 detail scenarios where attackers can exploit these flaws to gain unauthorized access or disrupt service. The vulnerabilities stem from integer overflows and improper parsing, which can lead to severe consequences for applications relying on libxml2 for XML processing.

How To Fix

Minimum fixed version

0:2.12.5-10.el10_2.4

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 use of libxml2 in applications that process untrusted XML data. Additionally, implementing strict input validation can help mitigate the risk of exploitation until the package is updated.

Conclusion

The recent vulnerabilities in libxml2 pose significant risks, including arbitrary code execution and data integrity issues. It is crucial for users to update to the latest patched version to mitigate these risks. Additionally, utilizing tools like Vulert can help monitor and identify vulnerabilities in your applications 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 applications.

The update addresses multiple vulnerabilities, including heap-based and stack-based buffer overflows, which can lead to arbitrary code execution and data integrity issues.

You can use Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json. Visit Vulert Scanner to check your application without signup.

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

If an immediate update is not possible, consider implementing input validation and limiting the use of libxml2 for untrusted XML data as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

0:2.12.5-10.el10_2.4

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