Bug 460134 - (CVE-2008-3790) CVE-2008-3790 ruby: DoS vulnerability in the REXML module
CVE-2008-3790 ruby: DoS vulnerability in the REXML module
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
public=20080823,reported=20080825,sou...
: Security
Depends On: 461579 461580 461590 461591
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-26 08:05 EDT by Jan Lieskovsky
Modified: 2011-10-27 09:30 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-11-13 10:22:43 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
Upstream PoC -- XML file with recursively nested entities (413 bytes, text/plain)
2008-08-26 08:10 EDT, Jan Lieskovsky
no flags Details
The Ruby core REXML module patch. (3.14 KB, patch)
2008-08-29 02:42 EDT, Jan Lieskovsky
no flags Details | Diff

  None (edit)
Description Jan Lieskovsky 2008-08-26 08:05:14 EDT
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
Comment 2 Jan Lieskovsky 2008-08-26 08:10:38 EDT
Created attachment 314979 [details]
Upstream PoC -- XML file with recursively nested entities
Comment 5 Jan Lieskovsky 2008-08-29 02:42:47 EDT
Created attachment 315334 [details]
The Ruby core REXML module patch.
Comment 6 Jan Lieskovsky 2008-08-29 02:43:54 EDT
References (patches):

1, Monkey patch, to be applied on every application by the user
   
http://www.ruby-lang.org/security/20080823rexml/rexml-expansion-fix.rb
http://weblog.rubyonrails.com/2008/8/23/dos-vulnerabilities-in-rexml

2, Standard patch, to be applied to the Ruby core (REXML module) implementation

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/18414
Comment 10 Fedora Update System 2008-10-08 10:21:11 EDT
ruby-1.8.6.287-2.fc8 has been submitted as an update for Fedora 8.
http://admin.fedoraproject.org/updates/ruby-1.8.6.287-2.fc8
Comment 11 Fedora Update System 2008-10-08 10:23:09 EDT
ruby-1.8.6.287-2.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/ruby-1.8.6.287-2.fc9
Comment 12 Fedora Update System 2008-10-09 17:29:30 EDT
ruby-1.8.6.287-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 13 Fedora Update System 2008-10-09 17:35:16 EDT
ruby-1.8.6.287-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.