Vulnerability in libxml2 - Denial of Service via Application Crash

libxml2 Updated 02 Oct 2025

Summary

10/05/2021
N/A
Yes i
Unrated
Not published

DLA-2653-1: libxml2 - security update. Affects libxml2 versions < 2.9.4+dfsg1-2.2+deb9u4. Fixed in 2.9.4+dfsg1-2.2+deb9u4. 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 Your last release was probably never penetration tested 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 library that provides support for reading, modifying, and writing XML and HTML files. It is widely used in various applications and systems. However, a vulnerability has been discovered in libxml2 that could potentially lead to a denial of service (DoS) attack. This vulnerability affects the Debian 9 stretch version of libxml2.

Vulnerability Detail

The vulnerability in libxml2 arises from several issues that could cause a DoS attack when parsing specially crafted files. These issues have been addressed in version 2.9.4+dfsg1-2.2+deb9u4 of libxml2. The exact technical details and potential ramifications of the vulnerability are documented in the related CVEs: CVE-2021-3516, CVE-2021-3517, CVE-2021-3518, and CVE-2021-3537.

How To Fix

Minimum fixed version

2.9.4+dfsg1-2.2+deb9u4

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

There is no specific workaround mentioned for this vulnerability. The recommended solution is to apply the security update as mentioned in the 'how_to_fix' section.

Conclusion

In conclusion, a vulnerability has been discovered in libxml2 that could lead to a denial of service (DoS) attack. It is recommended to upgrade your libxml2 packages to the fixed version mentioned in this advisory. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

libxml2 is a library that provides support for reading, modifying, and writing XML and HTML files. It is widely used in various applications and systems.

A denial of service (DoS) attack is an attempt to make a computer or network resource unavailable to its intended users by overwhelming it with a flood of illegitimate requests or other malicious activities.

This vulnerability affects the libxml2 package in Debian 9 stretch. If left unpatched, it could potentially lead to a denial of service (DoS) attack on systems running this version of libxml2.

There are no known exploits for this vulnerability at the time of this advisory. However, it is always recommended to apply security updates promptly to mitigate any potential risks.

You can find more information about this vulnerability, including the detailed security status of libxml2, on the Debian security tracker page for libxml2: https://security-tracker.debian.org/tracker/libxml2

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.9.4+dfsg1-2.2+deb9u4

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