1. CVE archive
  2. 2012
  3. CVE-2012-6685

CVE-2012-6685

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

Description

Nokogiri before 1.5.4 is vulnerable to XXE attacks

Affected products

VendorProductVersionPlatform
nokogiri nokogiri < 1.5.4 –
redhat cloudforms management engine 5.0 –
redhat enterprise mrg 2.0 –
redhat openshift 2.0 –
redhat openstack 4.0 –
redhat openstack 6.0 –
redhat openstack foreman all –
redhat satellite 6.0 –
redhat subscription asset manager all –
All 22 Nokogiri 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