Memory Corruption Vulnerability in libxml2: Denial of Service Risk

libxml2 Updated 02 Oct 2025

Summary

16/06/2025
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2025-49796: A vulnerability was found in libxml2. Affects libxml2 versions < 2.9.10+dfsg-6.7+deb11u8. Fixed in 2.9.10+dfsg-6.7+deb11u8. 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 XML parsing library that provides a variety of functionalities for processing XML documents. It is known for its performance and compliance with XML standards, making it a critical component in many applications. However, it is susceptible to vulnerabilities that can be exploited, leading to potential security risks.

Vulnerability Detail

A vulnerability was discovered in libxml2 that affects the processing of certain sch:name elements in XML files. This flaw can lead to memory corruption, allowing attackers to craft malicious XML input that may cause libxml2 to crash. The implications of this vulnerability include denial of service and the risk of undefined behavior due to sensitive data being corrupted in memory.

How To Fix

Minimum fixed version

2.9.10+dfsg-6.7+deb11u8

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libxml2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid processing untrusted XML input that may contain sch:name elements until the package is updated to a secure version.

Conclusion

The memory corruption vulnerability in libxml2 poses significant risks, including denial of service and potential data corruption. It is crucial for users to update their libxml2 packages to the latest patched versions to mitigate these risks. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in your applications.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

The vulnerability involves memory corruption triggered by processing specific XML elements, which can lead to application crashes.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing your manifest file. Visit Vulert Scanner to check if your application is affected.

Exploitation of this vulnerability can result in denial of service and potential exposure of sensitive data due to memory corruption.

Yes, there are patched versions of libxml2 available for various Debian releases. It is recommended to update to the latest version.

If an immediate update is not possible, avoid processing untrusted XML input that may exploit this vulnerability until a patch can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.10+dfsg-6.7+deb11u8

This is the first release that contains the fix.

sudo apt-get install --only-upgrade 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