Security Vulnerability in libxml2: Infinite Recursion Issue

libxml2 Updated 05 Dec 2025

Summary

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

ALSA-2025:22376: Moderate: libxml2 security update. Affects libxml2 versions < 2.9.13-14.el9_7. Fixed in 2.9.13-14.el9_7. 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, providing essential functionalities for parsing and manipulating XML documents. It is a critical library for many applications, including web browsers, XML editors, and data processing tools. The library's robustness and versatility make it a popular choice among developers. However, it is susceptible to security vulnerabilities that can compromise the integrity and performance of applications relying on it.

Vulnerability Detail

The vulnerability identified as CVE-2025-9714 in libxml2 is an infinite recursion issue occurring in the exsltDynMapFunction function within the libexslt/dynamic.c file. This flaw can lead to a denial of service (DoS) condition, where an application using libxml2 may become unresponsive or crash due to excessive resource consumption. The vulnerability arises from improper handling of certain XML inputs, allowing attackers to exploit this weakness and disrupt normal operations.

How To Fix

Minimum fixed version

2.9.13-14.el9_7

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 immediate updating is not feasible, consider implementing input validation to filter out potentially malicious XML data that could trigger the infinite recursion. Additionally, monitoring application performance and resource usage can help mitigate the impact of this vulnerability until a proper fix is applied.

Conclusion

The libxml2 library has a critical vulnerability (CVE-2025-9714) that can lead to infinite recursion and denial of service. It is crucial for users to update to the patched version to mitigate risks. Implementing input validation and monitoring can serve as temporary measures until the update is applied.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

CVE-2025-9714 is a security vulnerability in the libxml2 library that allows for infinite recursion, potentially leading to denial of service.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which analyzes your manifest file for vulnerabilities.

The primary consequence is a denial of service, where applications may become unresponsive or crash due to excessive resource consumption.

It is recommended to regularly check for updates and apply security patches as soon as they are released to protect against vulnerabilities.

Yes, Vulert allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file, without requiring code access or installation.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.13-14.el9_7

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