CVE-2014-8090: XEE
The CVE-2014-8080 (tracked via bug 1157709) was assigned to a "billion laughs" issue affecting the Ruby REXML XML parser. The issue affected expansion of parameter entities, making it possible for a small XML document to cause the parser to use excessive amount of CPU and memory while parsing.
The upstream patch for CVE-2014-8080 introduced checks against the REXML.entityexpansiontextlimit, but did not add restrictions to limit the number of expansions performed, i.e. checks against the REXML::Document.entityexpansionlimit. As a consequence, even with the patch applied, a small XML document could cause REXML to use an excessive amount of CPU time. High memory usage can be achieved using larger inputs.
Note that similar issues were fixing in REXML in the past for general entities - see bug 460134 (CVE-2008-3790) or bug 914716 (CVE-2013-1821).
Acknowledgement:
This issue was discovered by Red Hat Product Security.
Other sources
The REXML parser in Ruby 1.9.x before 1.9.3 patchlevel 551, 2.0.x before 2.0.0 patchlevel 598, and 2.1.x before 2.1.5 allows remote attackers to cause a denial of service (CPU and memory consumption) a crafted XML document containing an empty string in an entity that is used in a large number of nested entity references, aka an XML Entity Expansion (XEE) attack. NOTE: this vulnerability exists because of an incomplete fix for CVE-2013-1821 and CVE-2014-8080.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 1.9.3 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.0.0 - Upgrade
Upgrade
redhat/rubyto a version that resolves this vulnerability.Fixed in 2.1.5 - Upgrade
Upgrade
redhat/jrubyto a version that resolves this vulnerability.Fixed in 1.7.16.2 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.3 patchlevel 551 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.0.0 patchlevel 598 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.1.5
Event History
Frequently Asked Questions
What is the severity of CVE-2014-8090?
CVE-2014-8090 has a high severity level as it allows remote attackers to cause a denial of service through CPU and memory consumption.
How do I fix CVE-2014-8090?
To fix CVE-2014-8090, upgrade Ruby to version 1.9.3 patchlevel 551 or higher, 2.0.0 patchlevel 598 or higher, or 2.1.5 or higher.
Which Ruby versions are affected by CVE-2014-8090?
CVE-2014-8090 affects Ruby versions 1.9.x before patchlevel 551, 2.0.x before patchlevel 598, and 2.1.x before patchlevel 5.
What type of attack does CVE-2014-8090 enable?
CVE-2014-8090 enables a denial of service (DoS) attack through resource exhaustion via crafted XML documents.
Is CVE-2014-8090 related to XML processing in Ruby?
Yes, CVE-2014-8090 specifically relates to the REXML parser in Ruby which is vulnerable to handling certain XML entities.