1. CVE archive
  2. 2008
  3. CVE-2008-3281

CVE-2008-3281

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

Description

libxml2 2.6.32 and earlier does not properly detect recursion during entity expansion in an attribute value, which allows context-dependent attackers to cause a denial of service (memory and CPU consumption) via a crafted XML document.

Affected products

VendorProductVersionPlatform
apple iphone os >= 1.0.0 < 3.0 –
apple safari < 4.0 –
canonical ubuntu linux 6.06 –
canonical ubuntu linux 7.04 –
canonical ubuntu linux 7.10 –
canonical ubuntu linux 8.04 –
debian debian linux 4.0 –
fedoraproject fedora 9 –
redhat enterprise linux desktop 3.0 –
redhat enterprise linux desktop 4.0 –
redhat enterprise linux desktop 5.0 –
redhat enterprise linux eus 4.7 –
redhat enterprise linux eus 5.2 –
redhat enterprise linux server 2.0 –
redhat enterprise linux server 3.0 –
redhat enterprise linux server 4.0 –
redhat enterprise linux server 5.0 –
redhat enterprise linux workstation 2.0 –
redhat enterprise linux workstation 3.0 –
redhat enterprise linux workstation 4.0 –
redhat enterprise linux workstation 5.0 –
vmware esx 3.0.3 –
vmware esx 2.5.4 –
vmware esx 2.5.5 –
vmware esx 3.0.2 –
xmlsoft libxml2 <= 2.6.32 –
All 123 Xmlsoft Libxml2 vulnerabilities

Vulnerability type

CWE-776 Improper Restriction of Recursive Entity References in DTDs

The product uses XML documents and allows their structure to be defined with a Document Type Definition (DTD), but it does not properly control the number of recursive definitions of entities.

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (Other)
If the DTD contains a large number of nested or recursive entities, this allows the attacker to expand data exponentially when the DTD is parsed, quickly consuming all system resources.

How to prevent it

Operation If possible, prohibit the use of DTDs or use an XML parser that limits the expansion of recursive DTD entities.
Implementation Before parsing XML files with associated DTDs, scan for recursive entity declarations and do not continue parsing potentially explosive content.

All 90 CWE-776 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org