Critical Security Flaw in libxml2: Heap and Stack Buffer Overflows

libxml2 Updated 25 Sep 2026

Summary

24/09/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:71641: Important: libxml2 security update. Affects libxml2 versions < 2.9.7-21.el8_10.9. Fixed in 2.9.7-21.el8_10.9. 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 data efficiently. It is integral to many software systems, providing essential functionalities for XML processing. However, recent vulnerabilities have exposed it to significant security risks, particularly concerning memory management issues that could lead to arbitrary code execution and data integrity problems.

Vulnerability Detail

The libxml2 library has several critical vulnerabilities that could be exploited by attackers. These include a heap-based buffer overflow (CVE-2026-86138) that allows arbitrary code execution, an integer overflow in write callbacks (CVE-2026-86143) leading to data integrity issues, a stack-based buffer overflow in the xmlSnprintfElements function (CVE-2026-86140), and improper parseFlags propagation causing information disclosure, SSRF, or denial of service (CVE-2026-86144). Additionally, a double-free or use-after-free vulnerability exists in the Python bindings (CVE-2026-74860). These vulnerabilities can have severe ramifications, including unauthorized access to sensitive data and system crashes.

How To Fix

Minimum fixed version

2.9.7-21.el8_10.9

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, consider limiting the use of libxml2 in applications that process untrusted XML data until the update is applied. Additionally, review and sanitize any XML input to mitigate potential exploitation.

Conclusion

The vulnerabilities in libxml2 present critical security risks that can lead to severe consequences for affected systems. It is imperative to update to the latest patched version to mitigate these risks effectively. Users should remain vigilant and utilize tools like Vulert to monitor their applications for vulnerabilities.

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 can lead to arbitrary code execution, data integrity issues, and denial of service, posing significant security risks to affected systems.

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

If immediate updates are not possible, limit the use of libxml2 for processing untrusted XML data and sanitize inputs to reduce the risk of exploitation.

Detailed information about the vulnerabilities can be found on the respective CVE pages: CVE-2026-74860, CVE-2026-86138, CVE-2026-86140, CVE-2026-86143, and CVE-2026-86144.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.7-21.el8_10.9

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