CVE-2016-4447
High · 7.5CVSS
7.5
EPSS
14.0%
Published
Jun 9, 2016
CISA due date
—
Cloudanix analysis
A bug in how some software reads certain files can let attackers crash programs and interrupt services by sending specially made files.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Heap-based buffer underread in xmlParseElementDecl during xmlParseName processing of crafted XML input leading to application crash.
Why it matters to the business
Denial of service causing application downtime and service disruption. Public exploits have been available for years with stable moderate exploitability scores.
How an attack unfolds
An attacker supplies a malicious file containing a specially crafted XML element declaration that reaches xmlParseElementDecl in parser.c, triggering the underread and crash when processed by dependent applications such as ghostscript.
How to fix it
Upgrade ghostscript packages to the fixed versions 9.22~dfsg-1 or later on Debian 10, 11, 12, and 13. Ensure underlying libxml2 dependency is at least 2.9.4.
How to confirm the fix worked
Confirm installed ghostscript version meets or exceeds 9.22~dfsg-1 on each Debian release and test parsing of known triggering XML constructs for absence of crashes.
Typical attack path
- Craft malicious XML file targeting element declaration parsing
- Deliver file to target application or service that invokes libxml2
- Trigger XML parsing path through xmlParseName
- Induce heap buffer underread resulting in crash
How to detect it
Review application and system logs for sudden crashes or segmentation faults triggered by XML file processing; inspect any available core dumps or stack traces referencing parser.c or xmlParseElementDecl.
What your security team should do
- Apply package upgrades to fixed versions without delay
- Harden XML input handling and add resource limits around parsing
- Monitor crash logs for segmentation faults during XML processing
The record
The xmlParseElementDecl function in parser.c in libxml2 before 2.9.4 allows context-dependent attackers to cause a denial of service (heap-based buffer underread and application crash) via a crafted file, involving xmlParseName.
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 |
| Red Hat:enterprise_linux:6::client | libxml2 | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | libxml2-debuginfo | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | libxml2-devel | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | libxml2-python | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::client | libxml2-static | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::computenode | libxml2 | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::computenode | libxml2-debuginfo | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::computenode | libxml2-devel | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::computenode | libxml2-python | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::computenode | libxml2-static | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::server | libxml2 | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::server | libxml2-debuginfo | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::server | libxml2-devel | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::server | libxml2-python | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::server | libxml2-static | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::workstation | libxml2 | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::workstation | libxml2-debuginfo | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::workstation | libxml2-devel | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::workstation | libxml2-python | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:6::workstation | libxml2-static | 0 | 0:2.7.6-21.el6_8.1 |
| Red Hat:enterprise_linux:7::client | libxml2 | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::client | libxml2-debuginfo | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::client | libxml2-devel | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::client | libxml2-python | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::client | libxml2-static | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::computenode | libxml2 | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::computenode | libxml2-debuginfo | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::computenode | libxml2-devel | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::computenode | libxml2-python | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::computenode | libxml2-static | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::server | libxml2 | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::server | libxml2-debuginfo | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::server | libxml2-devel | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::server | libxml2-python | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::server | libxml2-static | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::workstation | libxml2 | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::workstation | libxml2-debuginfo | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::workstation | libxml2-devel | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::workstation | libxml2-python | 0 | 0:2.9.1-6.el7_2.3 |
| Red Hat:enterprise_linux:7::workstation | libxml2-static | 0 | 0:2.9.1-6.el7_2.3 |
| 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 |
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