Critical Security Update for libxml2: Addressing Use-After-Free and Buffer Overflow Vulnerabilities

libxml2 Updated 02 Oct 2025

Summary

12/03/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:2679: Important: libxml2 security update. Affects libxml2 versions < 2.9.13-6.el9_5.2. Fixed in 2.9.13-6.el9_5.2. 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 provides an implementation of various XML standards. It is essential for applications that require XML parsing, validation, and manipulation. The library is known for its performance and flexibility, making it a popular choice among developers. However, recent vulnerabilities have been identified that could compromise the security of applications relying on this library.

Vulnerability Detail

The vulnerabilities in libxml2 include a Use-After-Free issue (CVE-2024-56171) and a Stack-based buffer overflow in the xmlSnprintfElements function (CVE-2025-24928). The Use-After-Free vulnerability can lead to arbitrary code execution, while the buffer overflow can allow attackers to execute malicious code or crash the application. Both vulnerabilities stem from improper memory management and can have severe implications for the integrity and security of applications using libxml2.

How To Fix

Minimum fixed version

2.9.13-6.el9_5.2

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

If you cannot update the package immediately, consider implementing input validation and sanitization in your application to mitigate the risk of exploitation. Additionally, avoid using features of libxml2 that are known to be vulnerable until the update can be applied.

Conclusion

The libxml2 library has critical vulnerabilities that need to be addressed promptly. By updating to the latest version, users can protect their applications from potential exploits. It is essential to stay informed about such vulnerabilities and utilize tools like Vulert to monitor your software for security risks.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

libxml2 is a development library used for parsing and manipulating XML documents, widely utilized in various applications.

The vulnerabilities include a Use-After-Free issue and a Stack-based buffer overflow, both of which can lead to severe security risks.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Check your application using the Vulert playground without any signup.

Implement input validation and avoid using vulnerable features until you can apply the update.

For detailed information, refer to the CVE pages for CVE-2024-56171 and CVE-2025-24928.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.13-6.el9_5.2

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