Critical Security Flaw in libxml2: Important Update Required

libxml2 Updated 02 Oct 2025

Summary

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

ALSA-2025:1350: Important: libxml2 security update. Affects libxml2 versions < 2.9.13-6.el9_5.1. Fixed in 2.9.13-6.el9_5.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 an implementation of various XML standards, enabling developers to parse and manipulate XML documents efficiently. It is integral to many applications and systems, offering features such as validation, XPath support, and XInclude processing. However, vulnerabilities in this library can lead to severe security risks, including potential data corruption and unauthorized access.

Vulnerability Detail

The vulnerability identified as CVE-2022-49043 is a use-after-free issue in the xmlXIncludeAddNode function of the libxml2 library. This flaw can be exploited by attackers to execute arbitrary code or crash applications that rely on libxml2 for XML processing. The root cause of this vulnerability stems from improper memory management, which allows an attacker to manipulate memory allocations and potentially gain control over the execution flow of the application.

How To Fix

Minimum fixed version

2.9.13-6.el9_5.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 the package is not immediately feasible, consider isolating the application that uses libxml2 from untrusted input or disabling features that utilize XML processing until the update can be applied.

Conclusion

The libxml2 library has a critical vulnerability (CVE-2022-49043) that needs immediate attention. Updating to the patched version is crucial to maintain the security and integrity of applications that rely on this library. Users are encouraged to monitor their dependencies for vulnerabilities using tools like Vulert.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

CVE-2022-49043 is a security vulnerability in the libxml2 library that allows for a use-after-free condition, potentially leading to arbitrary code execution.

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

Failing to address this vulnerability can expose your application to attacks that may lead to data breaches, unauthorized access, or application crashes.

Yes, Vulert provides a service that monitors open-source vulnerabilities in your software using just a manifest file like package-lock.json.

If an immediate update is not possible, consider implementing isolation measures for the application or disabling XML processing features until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.13-6.el9_5.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