Cloudanix VulnDB

CVE-2016-4483

High · 7.5

CVSS

7.5

EPSS

6.0%

Published

Apr 11, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in a common XML library can make programs that read or write XML data crash when they encounter certain unusual text values, interrupting services that rely on those programs.

Exploit Available
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Deserialization
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The xmlBufAttrSerializeTxtContent function in libxml2 performs an out-of-bounds read during XML attribute serialization when a non-UTF-8 value is processed, resulting in an application crash.

Why it matters to the business

Applications that parse or serialize untrusted XML can be forced offline, causing service interruptions and potential loss of availability for dependent systems until the process is restarted.

How an attack unfolds

An attacker crafts an XML document containing an attribute value that is not valid UTF-8 and supplies it to any application using the vulnerable libxml2 serialization path; the library reads past the intended buffer boundary, triggering a crash and denying service.

How to fix it

Update gnome/libxml2 to the commit bdec2183f34b37ee89ae1d330c6ad2bb4d76605f or later; rebuild and redeploy all dependent applications after the update.

How to confirm the fix worked

Confirm the installed libxml2 source or binary contains commit bdec2183f34b37ee89ae1d330c6ad2bb4d76605f; test by feeding a non-UTF-8 attribute value and verifying the process no longer crashes.

Typical attack path

  1. Identify a target application that uses libxml2 for XML processing and accepts attacker-controlled input
  2. Craft a minimal XML snippet with a non-UTF-8 attribute value that reaches xmlBufAttrSerializeTxtContent
  3. Deliver the malformed XML via network request, file upload, or API call
  4. Trigger serialization of the attribute, causing the out-of-bounds read and process termination

How to detect it

Review application and system logs for segmentation faults or crashes occurring inside libxml2 XML serialization routines; correlate with incoming XML payloads containing non-UTF-8 attribute data.

What your security team should do

  • Prioritize patching all instances of libxml2 to the fixed commit within standard change windows
  • Scan build pipelines and dependency manifests for the vulnerable gnome/libxml2 version
  • Add regression tests that exercise attribute serialization with invalid UTF-8 values
  • Monitor application logs for sudden crashes during XML handling until patches are applied

The record

The xmlBufAttrSerializeTxtContent function in xmlsave.c in libxml2 allows context-dependent attackers to cause a denial of service (out-of-bounds read and application crash) via a non-UTF-8 attribute value, related to serialization. NOTE: this vulnerability may be a duplicate of CVE-2016-3627.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 libxml2 0 2.9.3+dfsg1-1.1
Debian:12 libxml2 0 2.9.3+dfsg1-1.1
Debian:13 libxml2 0 2.9.3+dfsg1-1.1
Debian:14 libxml2 0 2.9.3+dfsg1-1.1
Debian:7 libxml2 0 2.8.0+dfsg1-7+wheezy6
Debian:8 libxml2 0 2.9.1+dfsg1-5+deb8u2
Mageia:5 libxml2 0 2.9.4-1.1.mga5
SUSE:Linux Enterprise Desktop 12 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Desktop 12 python-libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Desktop 12 SP1 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Desktop 12 SP1 python-libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server 11 SP2-LTSS libxml2 0 2.7.6-0.44.1
SUSE:Linux Enterprise Server 11 SP2-LTSS libxml2-python 0 2.7.6-0.44.4
SUSE:Linux Enterprise Server 11 SP3-LTSS libxml2 0 2.7.6-0.44.1
SUSE:Linux Enterprise Server 11 SP3-LTSS libxml2-python 0 2.7.6-0.44.4
SUSE:Linux Enterprise Server 11 SP3-TERADATA libxml2 0 2.7.6-0.44.1
SUSE:Linux Enterprise Server 11 SP3-TERADATA libxml2-python 0 2.7.6-0.44.4
SUSE:Linux Enterprise Server 11 SP4 libxml2 0 2.7.6-0.44.1
SUSE:Linux Enterprise Server 11 SP4 libxml2-python 0 2.7.6-0.44.4
SUSE:Linux Enterprise Server 12 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server 12 python-libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server 12 SP1 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server 12 SP1 python-libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 libxml2 0 2.7.6-0.44.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 libxml2-python 0 2.7.6-0.44.4
SUSE:Linux Enterprise Server for SAP Applications 12 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server for SAP Applications 12 python-libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 python-libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 libxml2 0 2.7.6-0.44.1
SUSE:Linux Enterprise Software Development Kit 12 libxml2 0 2.9.1-24.1
SUSE:Linux Enterprise Software Development Kit 12 SP1 libxml2 0 2.9.1-24.1
SUSE:Manager 2.1 libxml2 0 2.7.6-0.44.1
SUSE:Manager 2.1 libxml2-python 0 2.7.6-0.44.4
SUSE:Manager Proxy 2.1 libxml2 0 2.7.6-0.44.1
SUSE:Manager Proxy 2.1 libxml2-python 0 2.7.6-0.44.4
SUSE:OpenStack Cloud 5 libxml2 0 2.7.6-0.44.1
SUSE:OpenStack Cloud 5 libxml2-python 0 2.7.6-0.44.4
Ubuntu:14.04:LTS libxml2 0 2.9.1+dfsg1-3ubuntu4.8
Ubuntu:16.04:LTS libxml2 0 2.9.3+dfsg1-1ubuntu0.1
openSUSE:Tumbleweed libxml2 0 2.9.4-1.22
openSUSE:Tumbleweed python-libxml2 0 2.9.4-1.4

Related vulnerabilities