CVE-2016-4483
High · 7.5CVSS
7.5
EPSS
6.0%
Published
Apr 11, 2017
CISA due date
—
Cloudanix analysis
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.
- 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
- Identify a target application that uses libxml2 for XML processing and accepts attacker-controlled input
- Craft a minimal XML snippet with a non-UTF-8 attribute value that reaches xmlBufAttrSerializeTxtContent
- Deliver the malformed XML via network request, file upload, or API call
- 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
- CVE-2025-9714 Uncontrolled recursion in XPath evaluation in libxml2 up to and including version 2.9.14… Also affects libxml2
- CVE-2025-8732 A vulnerability was found in libxml2 up to 2.14.5. Also affects libxml2
- CVE-2025-6170 A flaw was found in the interactive shell of the xmllint command-line tool, used for… Also affects libxml2
- CVE-2025-49796 A vulnerability was found in libxml2. Also affects libxml2
- CVE-2025-49795 A NULL pointer dereference vulnerability was found in libxml2 when processing XPath XML… Also affects libxml2
- CVE-2025-49794 A use-after-free vulnerability was found in libxml2. Also affects libxml2
- CVE-2025-6021 A flaw was found in libxml2's xmlBuildQName function, where integer overflows in buffer… Also affects libxml2
- CVE-2025-32415 In libxml2 before 2.13.8 and 2.14.x before 2.14.2, xmlSchemaIDCFillNodeTables in… Also affects libxml2