Cloudanix VulnDB

CVE-2017-5969

Medium · 4.7

CVSS

4.7

EPSS

2.6%

Published

Apr 11, 2017

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A problem in a common XML handling tool can make programs crash when they try to recover from badly formed data files.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
High
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

NULL pointer dereference when libxml2 processes a crafted XML document in recover mode, resulting in application crash.

Why it matters to the business

Applications relying on XML recovery parsing may experience unexpected crashes and service interruptions when handling untrusted documents.

How an attack unfolds

An attacker supplies a maliciously crafted XML document to an application that invokes libxml2's recover parsing option, triggering the dereference and denial of service.

How to fix it

Disable the recover parsing option for any untrusted XML input. Update to a newer version of libxml2 if a fix becomes available and test thoroughly before deployment.

How to confirm the fix worked

Attempt to parse known trigger XML documents with recover mode enabled and confirm the application no longer crashes after configuration changes or library updates.

Typical attack path

  1. Locate a target application that uses libxml2 recover mode for XML input
  2. Craft an XML document designed to trigger the NULL dereference
  3. Deliver the document through normal input channels such as file upload or network request
  4. Observe application crash and loss of service

How to detect it

Review application and system logs for segmentation faults or crashes occurring immediately after XML parsing operations; correlate with file uploads or network requests containing XML.

What your security team should do

  • Audit all code paths that enable recover mode and remove it for production use
  • Replace recover mode with strict parsing and proper error handling
  • Monitor upstream libxml2 releases for any future corrections
  • Add input validation and size limits around XML processing

The record

libxml2 2.9.4, when used in recover mode, allows remote attackers to cause a denial of service (NULL pointer dereference) via a crafted XML document. NOTE: The maintainer states "I would disagree of a CVE with the Recover parsing option which should only be used for manual recovery at least for XML parser.

Affected packages

Ecosystem Package Introduced Fixed
Alpine:v3.10 libxml2 0 2.9.4-r4
Alpine:v3.11 libxml2 0 2.9.4-r4
Alpine:v3.12 libxml2 0 2.9.4-r4
Alpine:v3.13 libxml2 0 2.9.4-r4
Alpine:v3.14 libxml2 0 2.9.4-r4
Alpine:v3.15 libxml2 0 2.9.4-r4
Alpine:v3.16 libxml2 0 2.9.4-r4
Alpine:v3.17 libxml2 0 2.9.4-r4
Alpine:v3.18 libxml2 0 2.9.4-r4
Alpine:v3.19 libxml2 0 2.9.4-r4
Alpine:v3.2 libxml2 0 2.9.4-r3
Alpine:v3.20 libxml2 0 2.9.4-r4
Alpine:v3.21 libxml2 0 2.9.4-r4
Alpine:v3.22 libxml2 0 2.9.4-r4
Alpine:v3.3 libxml2 0 2.9.4-r3
Alpine:v3.4 libxml2 0 2.9.4-r3
Alpine:v3.5 libxml2 0 2.9.4-r3
Alpine:v3.6 libxml2 0 2.9.4-r4
Alpine:v3.7 libxml2 0 2.9.4-r4
Alpine:v3.8 libxml2 0 2.9.4-r4
Alpine:v3.9 libxml2 0 2.9.4-r4
Debian:11 libxml2 0 2.9.4+dfsg1-5.1
Debian:12 libxml2 0 2.9.4+dfsg1-5.1
Debian:13 libxml2 0 2.9.4+dfsg1-5.1
Debian:14 libxml2 0 2.9.4+dfsg1-5.1
Debian:9 libxml2 0 2.9.4+dfsg1-2.2+deb9u6
Mageia:5 libxml2 0 2.9.7-1.mga5
Mageia:5 perl-XML-LibXML 0 2.12.100-1.2.mga5
SUSE:Linux Enterprise Desktop 12 SP2 libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Desktop 12 SP2 python-libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Server 11 SP4 libxml2 0 2.7.6-0.76.1
SUSE:Linux Enterprise Server 11 SP4 libxml2-python 0 2.7.6-0.76.4
SUSE:Linux Enterprise Server 12 SP2 libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Server 12 SP2 python-libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 python-libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 libxml2 0 2.7.6-0.76.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 libxml2-python 0 2.7.6-0.76.4
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP2 python-libxml2 0 2.9.4-42.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 libxml2 0 2.7.6-0.76.1
SUSE:Linux Enterprise Software Development Kit 12 SP2 libxml2 0 2.9.4-42.1
Ubuntu:Pro:14.04:LTS libxml2 0 No fix
Ubuntu:Pro:16.04:LTS libxml2 0 No fix
openSUSE:Tumbleweed libxml2 0 2.9.12-1.2

Related vulnerabilities