1. CVE archive
  2. 2016
  3. CVE-2016-3627

CVE-2016-3627

7.5 High severity CVSS v3.1 · source NVD CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 7.5 – High

Description

The xmlStringGetNodeList function in tree.c in libxml2 2.9.3 and earlier, when used in recovery mode, allows context-dependent attackers to cause a denial of service (infinite recursion, stack consumption, and application crash) via a crafted XML document.

Affected products

VendorProductVersionPlatform
canonical ubuntu linux 12.04 –
canonical ubuntu linux 14.04 –
canonical ubuntu linux 15.10 –
canonical ubuntu linux 16.04 –
debian debian linux 8.0 –
hp icewall federation agent 3.0 –
hp icewall file manager 3.0 –
opensuse leap 42.1 –
oracle solaris 11.3 –
oracle vm server 3.3 –
oracle vm server 3.4 –
redhat enterprise linux desktop 6.0 –
redhat enterprise linux desktop 7.0 –
redhat enterprise linux eus 7.2 –
redhat enterprise linux eus 7.3 –
redhat enterprise linux eus 7.4 –
redhat enterprise linux eus 7.5 –
redhat enterprise linux eus 7.6 –
redhat enterprise linux eus 7.7 –
redhat enterprise linux server 6.0 –
redhat enterprise linux server 7.0 –
redhat enterprise linux server aus 7.2 –
redhat enterprise linux server aus 7.4 –
redhat enterprise linux server aus 7.6 –
redhat enterprise linux workstation 6.0 –
redhat enterprise linux workstation 7.0 –
redhat jboss core services all –
xmlsoft libxml2 <= 2.9.3 –
All 123 Xmlsoft Libxml2 vulnerabilities

Vulnerability type

CWE-674 Uncontrolled Recursion

The product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack.

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory)
Resources including CPU, memory, and stack memory could be rapidly consumed or exhausted, eventually leading to an exit or crash.
Confidentiality Read Application Data
In some cases, an application's interpreter might kill a process or thread that appears to be consuming too many resources, such as with PHP's memory_limit setting. When the interpreter kills the process/thread, it might report an error containing detailed information such as the application's installation path.

How to prevent it

Implementation Ensure that an end condition will be reached under all logic conditions. The end condition may include checking against the depth of recursion and exiting with an error if the recursion goes too deep. The complexity of the end condition contributes to the effectiveness of this action.
Implementation Increase the stack size.

All 664 CWE-674 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org