Critical Buffer Overflow in libxml2: Remote Code Execution Risk

libxml2 Updated 02 Oct 2025

Summary

19/02/2018
N/A
Yes i
Critical
9.8

CVE-2017-7376: Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling redirects. Affects libxml2 across 2 version ranges.

< 2.9.4+dfsg1-3.1 < 2960178fe8f9fe690b7f8c1c49093ff54bb56934

Fixed in 2.9.4+dfsg1-3.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libxml2 is a widely used XML parsing library that provides a range of functionalities for processing XML documents. It is integral to many applications and systems, offering features such as validation, XPath support, and document manipulation. However, libxml2 has been found to have a critical vulnerability that can be exploited by remote attackers, potentially leading to severe security breaches.

Vulnerability Detail

The vulnerability, identified as CVE-2017-7376, is a buffer overflow issue in libxml2 that arises from an incorrect limit for port values when handling redirects. This flaw allows remote attackers to execute arbitrary code on affected systems. The vulnerability is particularly dangerous because it can be exploited without user interaction, making it a significant threat to systems using vulnerable versions of libxml2.

How To Fix

Minimum fixed version

2.9.4+dfsg1-3.1

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

If an immediate upgrade is not feasible, consider implementing network-level protections such as firewalls to restrict access to vulnerable services. Additionally, monitor your systems for unusual activity that could indicate exploitation attempts.

Conclusion

CVE-2017-7376 represents a critical vulnerability in libxml2 that poses a significant risk of remote code execution. Users are strongly advised to upgrade to the latest version to protect their systems. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

CVE-2017-7376 is a buffer overflow vulnerability in libxml2 that allows remote attackers to execute arbitrary code.

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

The CVSS score for CVE-2017-7376 is 9.8, indicating a critical level of severity.

Exploitation of this vulnerability can lead to remote code execution, allowing attackers to gain control over affected systems.

Yes, implementing network-level protections and monitoring for unusual activity can help mitigate the risk until an upgrade is possible.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.9.4+dfsg1-3.1

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