Critical Security Update for libxml2: Addressing Vulnerability CVE-2025-13312

libxml2 Updated 02 Oct 2025

Summary

07/08/2025
N/A
Yes i
High
7.8

RHSA-2025:13312: Red Hat Security Advisory: libxml2 security update. Affects libxml2 versions < 0:2.9.13-11.el9_4. Fixed in 0:2.9.13-11.el9_4. 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 XML parsing library that provides a range of functionalities for processing XML and HTML documents. It is integral to various applications and systems, enabling efficient data handling and manipulation. The library is known for its performance and compliance with standards, but it has recently been identified as vulnerable to a security flaw that could lead to significant risks if not addressed promptly.

Vulnerability Detail

The vulnerability in libxml2, identified as CVE-2025-13312, arises from improper handling of certain XML inputs, which could allow an attacker to exploit the library's parsing capabilities. This could lead to denial of service or potential data corruption. The vulnerability has a CVSS score of 7.8, indicating a high severity level that necessitates immediate attention from users and administrators of affected systems.

How To Fix

Minimum fixed version

0:2.9.13-11.el9_4

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 sanitize XML data before processing it with libxml2. This can help mitigate the risk of exploitation until the library is updated.

Conclusion

The libxml2 vulnerability CVE-2025-13312 poses a significant risk to systems utilizing this library. It is crucial to update to the patched version to mitigate potential threats. Users are encouraged to monitor their applications for vulnerabilities using tools like Vulert, which can provide real-time alerts without requiring code access.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

libxml2 is an open-source library for parsing XML and HTML documents, widely used in various applications for data manipulation.

CVE-2025-13312 is the identifier for a specific vulnerability in libxml2 that could lead to denial of service or data corruption.

You can use Vulert, which monitors open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

The CVSS score for this vulnerability is 7.8, indicating a high level of severity.

Implement input validation to sanitize XML data before processing it with libxml2 as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

0:2.9.13-11.el9_4

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