CVE-2008-3790
published 2008-08-27CVE-2008-3790: The REXML module in Ruby 1.8.6 through 1.8.6-p287, 1.8.7 through 1.8.7-p72, and 1.9 allows context-dependent attackers to cause a denial of service (CPU…
PriorityP430medium5CVSS 2.0
AVNACLAuNCNINAP
EXPLOIT
EPSS
15.20%
96.3th percentile
The REXML module in Ruby 1.8.6 through 1.8.6-p287, 1.8.7 through 1.8.7-p72, and 1.9 allows context-dependent attackers to cause a denial of service (CPU consumption) via an XML document with recursively nested entities, aka an "XML entity explosion."
Affected
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
| ruby-lang | ruby | — | — |
CVSS provenance
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
vendor_ubuntu6.8MEDIUM
vendor_redhat5.0MEDIUM
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Ruby vulnerability
vendor_ubuntu·2008-12-16·CVSS 5.0
CVE-2008-3443 [MEDIUM] Ruby vulnerability
Title: Ruby vulnerability
Summary: Ruby vulnerability
Laurent Gaffie discovered that Ruby did not properly check for memory
allocation failures. If a user or automated system were tricked into
running a malicious script, an attacker could cause a denial of
service. (CVE-2008-3443)
This update also fixes a regression in the upstream patch previously
applied to fix CVE-2008-3790. The regression would cause parsing of
some XML documents to fail.
Instructions: In general, a standard system upgrade is sufficient to effect the
necessary changes.
Ubuntu
Ruby vulnerabilities
vendor_ubuntu·2008-10-10·CVSS 6.8
CVE-2008-3790 [MEDIUM] Ruby vulnerabilities
Title: Ruby vulnerabilities
Summary: Ruby vulnerabilities
Akira Tagoh discovered a vulnerability in Ruby which lead to an integer
overflow. If a user or automated system were tricked into running a
malicious script, an attacker could cause a denial of service or
possibly execute arbitrary code with the privileges of the user
invoking the program. (CVE-2008-2376)
Laurent Gaffie discovered that Ruby did not properly check for memory
allocation failures. If a user or automated system were tricked into
running a malicious script, an attacker could cause a denial of
service. (CVE-2008-3443)
Keita Yamaguchi discovered several safe level vulnerabilities in Ruby.
An attacker could use this to bypass intended access restrictions.
(CVE-2008-3655)
Keita Yamaguchi discovered that WEBrick in Ruby
Red Hat
ruby: DoS vulnerability in the REXML module
vendor_redhat·2008-08-23·CVSS 5.0
CVE-2008-3790 [MEDIUM] ruby: DoS vulnerability in the REXML module
ruby: DoS vulnerability in the REXML module
The REXML module in Ruby 1.8.6 through 1.8.6-p287, 1.8.7 through 1.8.7-p72, and 1.9 allows context-dependent attackers to cause a denial of service (CPU consumption) via an XML document with recursively nested entities, aka an "XML entity explosion."
GHSA
GHSA-96jc-f6m3-pf2w: The REXML module in Ruby 1
ghsa_unreviewed·2022-05-02
CVE-2008-3790 [MEDIUM] CWE-20 GHSA-96jc-f6m3-pf2w: The REXML module in Ruby 1
The REXML module in Ruby 1.8.6 through 1.8.6-p287, 1.8.7 through 1.8.7-p72, and 1.9 allows context-dependent attackers to cause a denial of service (CPU consumption) via an XML document with recursively nested entities, aka an "XML entity explosion."
No detection rules found.
Bugzilla
CVE-2014-8090 ruby: REXML incomplete fix for CVE-2014-8080
bugzilla·2014-11-03·CVSS 5.0
CVE-2014-8090 [MEDIUM] CVE-2014-8090 ruby: REXML incomplete fix for CVE-2014-8080
CVE-2014-8090 ruby: REXML incomplete fix for CVE-2014-8080
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.entity_expansion_text_limit, but did not add restrictions to limit the number of expansions performed, i.e. checks against the REXML::Document.entity_expansion_limit. 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 issu
Bugzilla
CVE-2014-8080 ruby: REXML billion laughs attack via parameter entity expansion
bugzilla·2014-10-27·CVSS 5.0
CVE-2014-8080 [MEDIUM] CVE-2014-8080 ruby: REXML billion laughs attack via parameter entity expansion
CVE-2014-8080 ruby: REXML billion laughs attack via parameter entity expansion
Upstream released new version of Ruby [1] which fixes DoS during XML expansion.
Upstream commit fixing this: http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/?pathrev=48161
[1]: https://www.ruby-lang.org/en/news/2014/10/27/rexml-dos-cve-2014-8080/
Discussion:
Created ruby tracking bugs for this issue:
Affects: fedora-all [bug 1157936]
---
(In reply to Vasyl Kaigorodov from comment #0)
> Upstream commit fixing this:
> http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/?pathrev=48161
The actual commit is:
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48161
It also provides more details of the issue, which were excluded form the upstream advisory. This issue is a "billion laughs" issue, using par
Bugzilla
CVE-2008-3790 ruby: DoS vulnerability in the REXML module
bugzilla·2008-08-26·CVSS 5.0
CVE-2008-3790 [MEDIUM] CVE-2008-3790 ruby: DoS vulnerability in the REXML module
CVE-2008-3790 ruby: DoS vulnerability in the REXML module
Ruby upstream has reported a security vulnerability present in the
Ruby REXML module. The REXML engine is vulnerable to the "XML entity explosion" attack. This issue could allow an attacker to cause a denial of service by
attempting to parse a XML file with recursively nested entities via the
Ruby XML files parsing engine (REXML).
References:
http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/19f69e8a081fc0d1/e138e014b74352ca?#e138e014b74352ca
Discussion:
Created attachment 314979
Upstream PoC -- XML file with recursively nested entities
---
Created attachment 315334
The Ruby core REXML module patch.
---
References (patches):
1, Monkey
http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/19f69e8a081fc0d1/e138e014b74352cahttp://lists.apple.com/archives/security-announce/2009/May/msg00002.htmlhttp://secunia.com/advisories/31602http://secunia.com/advisories/32165http://secunia.com/advisories/32219http://secunia.com/advisories/32255http://secunia.com/advisories/32256http://secunia.com/advisories/32371http://secunia.com/advisories/33178http://secunia.com/advisories/33185http://secunia.com/advisories/35074http://security.gentoo.org/glsa/glsa-200812-17.xmlhttp://support.apple.com/kb/HT3549http://support.avaya.com/elmodocs2/security/ASA-2008-424.htmhttp://weblog.rubyonrails.org/2008/9/3/rails-2-0-4-maintenance-releasehttp://www.debian.org/security/2008/dsa-1651http://www.debian.org/security/2008/dsa-1652http://www.openwall.com/lists/oss-security/2008/08/25/4http://www.openwall.com/lists/oss-security/2008/08/26/1http://www.openwall.com/lists/oss-security/2008/08/26/4http://www.redhat.com/support/errata/RHSA-2008-0897.htmlhttp://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/http://www.ruby-lang.org/security/20080823rexml/rexml-expansion-fix.rbhttp://www.securityfocus.com/bid/30802http://www.securitytracker.com/id?1020735http://www.us-cert.gov/cas/techalerts/TA09-133A.htmlhttp://www.vupen.com/english/advisories/2008/2428http://www.vupen.com/english/advisories/2008/2483http://www.vupen.com/english/advisories/2009/1297https://exchange.xforce.ibmcloud.com/vulnerabilities/44628https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10393https://usn.ubuntu.com/651-1/https://usn.ubuntu.com/691-1/https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00259.htmlhttps://www.redhat.com/archives/fedora-package-announce/2008-October/msg00299.htmlhttp://groups.google.com/group/comp.lang.ruby/browse_thread/thread/19f69e8a081fc0d1/e138e014b74352cahttp://lists.apple.com/archives/security-announce/2009/May/msg00002.htmlhttp://secunia.com/advisories/31602http://secunia.com/advisories/32165http://secunia.com/advisories/32219http://secunia.com/advisories/32255http://secunia.com/advisories/32256http://secunia.com/advisories/32371http://secunia.com/advisories/33178http://secunia.com/advisories/33185http://secunia.com/advisories/35074http://security.gentoo.org/glsa/glsa-200812-17.xmlhttp://support.apple.com/kb/HT3549http://support.avaya.com/elmodocs2/security/ASA-2008-424.htmhttp://weblog.rubyonrails.org/2008/9/3/rails-2-0-4-maintenance-releasehttp://www.debian.org/security/2008/dsa-1651http://www.debian.org/security/2008/dsa-1652http://www.openwall.com/lists/oss-security/2008/08/25/4http://www.openwall.com/lists/oss-security/2008/08/26/1http://www.openwall.com/lists/oss-security/2008/08/26/4http://www.redhat.com/support/errata/RHSA-2008-0897.htmlhttp://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/http://www.ruby-lang.org/security/20080823rexml/rexml-expansion-fix.rbhttp://www.securityfocus.com/bid/30802http://www.securitytracker.com/id?1020735http://www.us-cert.gov/cas/techalerts/TA09-133A.htmlhttp://www.vupen.com/english/advisories/2008/2428http://www.vupen.com/english/advisories/2008/2483http://www.vupen.com/english/advisories/2009/1297https://exchange.xforce.ibmcloud.com/vulnerabilities/44628https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10393https://usn.ubuntu.com/651-1/https://usn.ubuntu.com/691-1/https://www.redhat.com/archives/fedora-package-announce/2008-October/msg00259.htmlhttps://www.redhat.com/archives/fedora-package-announce/2008-October/msg00299.html
2008-08-27
Published