Critical Security Vulnerability in libxml2: Heap Use After Free and Integer Overflow Issues

libxml2 Updated 02 Oct 2025

Summary

29/07/2025
N/A
Yes i
Critical
9.1

RLSA-2025:10698: Important: libxml2 security update. Affects libxml2 versions < 0:2.9.7-21.el8_10.1. Fixed in 0:2.9.7-21.el8_10.1. 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 Penetration testing for web, API and mobile 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 library that provides tools for parsing and manipulating XML documents. It supports various XML standards and is integral to many applications that require XML processing. The library is known for its performance and flexibility, but it has recently been identified as vulnerable to several critical security issues that could lead to severe consequences for applications relying on it.

Vulnerability Detail

The vulnerabilities in libxml2 include a heap use after free (UAF) condition and an integer overflow in the xmlBuildQName() function. These issues can lead to denial of service (DoS) attacks, where an attacker can exploit the vulnerabilities to crash applications or cause them to behave unexpectedly. The vulnerabilities are tracked under CVEs: CVE-2025-49794, CVE-2025-49796, and CVE-2025-6021, with a CVSS score of 9.1 indicating a critical severity level.

How To Fix

Minimum fixed version

0:2.9.7-21.el8_10.1

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, if updating is not immediately possible, consider isolating the affected applications from untrusted inputs or disabling features that utilize libxml2 until the library can be updated.

Conclusion

The libxml2 library has critical vulnerabilities that need immediate attention. Users are advised to update to the latest patched version to mitigate risks associated with these vulnerabilities. Regular monitoring and updates are essential to maintaining the security of applications that rely on this library.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

libxml2 is a development library used for parsing and manipulating XML documents, supporting various XML standards.

The vulnerabilities can lead to denial of service (DoS) attacks, potentially crashing applications or causing unexpected behavior.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

The vulnerabilities have a CVSS score of 9.1, indicating a critical severity level.

You can update libxml2 using the command 'sudo dnf update libxml2' to install the patched version 0:2.9.7-21.el8_10.1.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

0:2.9.7-21.el8_10.1

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