Vulnerability in libxml2 - security update

libxml2 Updated 02 Oct 2025

Summary

18/12/2017
N/A
Yes i
Unrated
Not published

DLA-1211-1: libxml2 - security update. Affects libxml2 versions < 2.8.0+dfsg1-7+wheezy12. Fixed in 2.8.0+dfsg1-7+wheezy12. 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 software library for parsing and manipulating XML files. It provides a set of APIs and tools for developers to work with XML data. The library is an essential component in many applications and is used in various programming languages. However, a security vulnerability has been discovered in libxml2 that could lead to memory corruption due to use after free in certain function calls within the XPath extensions. This vulnerability, identified as CVE-2017-15412, poses a risk to systems utilizing libxml2.

Vulnerability Detail

The vulnerability in libxml2 arises from improper handling of memory in certain XPath extension functions. This can result in memory corruption and potentially lead to arbitrary code execution or denial of service attacks. An attacker could exploit this vulnerability by crafting a malicious XML file and tricking a user or application into parsing it with a vulnerable version of libxml2. Successful exploitation could allow the attacker to gain control over the affected system or cause it to crash. It is crucial to address this vulnerability promptly to mitigate the associated risks.

How To Fix

Minimum fixed version

2.8.0+dfsg1-7+wheezy12

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 →

Conclusion

The vulnerability in libxml2 can be mitigated by upgrading to the patched version. It is crucial to promptly apply the security update to eliminate the risk of memory corruption and potential exploitation. For further assistance or support in addressing this vulnerability, please reach out to DevNack.com.

See every vulnerability recorded for libxml2 →

Share this vulnerability

FAQ

libxml2 is a software library used for parsing and manipulating XML files. It provides APIs and tools for developers to work with XML data in various programming languages.

The vulnerability in libxml2 could lead to memory corruption and potentially allow arbitrary code execution or denial of service attacks. It poses a risk to systems utilizing libxml2.

An attacker can exploit this vulnerability by crafting a malicious XML file and tricking a user or application into parsing it with a vulnerable version of libxml2.

Yes, a security update has been released to address this vulnerability. It is recommended to upgrade to libxml2 version 2.8.0+dfsg1-7+wheezy12 or later.

The updated libxml2 package can be obtained from the official Debian repositories or through the package management system of your operating system.

Related vulnerabilities

Recent vulnerabilities recorded for libxml2.

How To Fix

Minimum fixed version

2.8.0+dfsg1-7+wheezy12

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