Critical Buffer Over-read Vulnerability in libxml2 Package

libxml2 Updated 17 Jun 2026

Summary

16/06/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:26354: Low: libxml2 security update. Affects libxml2 versions < 2.9.7-21.el8_10.5. Fixed in 2.9.7-21.el8_10.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 Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libxml2 is a widely used development toolbox that provides an implementation of various XML standards. It is essential for parsing XML documents and is utilized in numerous applications and libraries. The package includes functionalities for XML parsing, validation, and transformation, making it a critical component in software development. However, vulnerabilities in libxml2 can lead to severe security risks, affecting the integrity and confidentiality of applications relying on it.

Vulnerability Detail

The vulnerability identified as CVE-2024-34459 involves a buffer over-read in the xmlHTMLPrintFileContext function within the xmllint.c file of the libxml2 library. This flaw can potentially allow an attacker to read sensitive data beyond the intended buffer limits, leading to information disclosure. The issue arises from improper handling of input data, which may result in unexpected behavior and could be exploited to compromise the security of applications using the affected library.

How To Fix

Minimum fixed version

2.9.7-21.el8_10.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 workaround, you can limit the use of the affected functions in your application until the package is updated. However, it is strongly advised to apply the patch as soon as possible to mitigate any potential risks.

Conclusion

The buffer over-read vulnerability in the libxml2 package poses a significant risk to applications relying on this library. It is crucial to update to the patched version to safeguard against potential exploits. Regular monitoring for vulnerabilities using tools like Vulert can help maintain the security of your software.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

CVE-2024-34459 is a vulnerability in the libxml2 library that allows for a buffer over-read, potentially leading to information disclosure.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability could lead to unauthorized access to sensitive data, compromising the security of applications that utilize the libxml2 library.

Yes, a patch is available in version 2.9.7-21.el8_10.5 of the libxml2 package. It is recommended to update to this version.

libxml2 is used for parsing, validating, and transforming XML documents, making it a critical component in many software applications.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.7-21.el8_10.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