Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 731435 (CVE-2011-2932)

Summary: CVE-2011-2932 rubygem-activesupport: XSS vulnerability in escaping function (Ruby on Rails)
Product: [Other] Security Response Reporter: Vincent Danen <vdanen>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bkearney, clalance, lutter, mastahnke, mhicks, mmorsi, mtasaka, sseago, vanmeeuwen+fedora, vondruch
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: rubygem-activesupport 2.3.13, rubygem-activesupport 3.0.10, rubygem-activesupport 3.1.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-16 09:48:16 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 731440, 731441, 731449, 731450, 731451    
Bug Blocks:    

Description Vincent Danen 2011-08-17 16:36:30 UTC
An XSS vulnerability in the escaping code used by Ruby on Rails was reported [1] where, using a specially crafted malformed unicode string, an attacker can bypass the escaping code.  Due to a bug in the Ruby 1.8 regular expression code, the Ruby on Rails replacement for ERB::Util.h will fail to escape certain malformed unicode strings, which could then be interpreted as HTML by some browsers.  This is corrected in upstream 3.0.10, 2.3.13, and 3.1.0rc5 versions and only affects platforms using Ruby 1.8.x (Ruby 1.9.x renders this ineffective).

Patches are available in the advisory [1] and in git [2].

[1] http://groups.google.com/group/rubyonrails-security/browse_thread/thread/56bffb5923ab1195
[2] https://github.com/rails/rails/commit/bfc432574d0b141fd7fe759edfe9b6771dd306bd

Comment 2 Vincent Danen 2011-08-17 17:21:14 UTC
This flaw is rubygems-activesupport, not rubygem-rails.

Comment 3 Vincent Danen 2011-08-17 17:26:56 UTC
Created rubygem-activesupport tracking bugs for this issue

Affects: fedora-all [bug 731449]
Affects: epel-5 [bug 731450]
Affects: epel-6 [bug 731451]

Comment 5 Vincent Danen 2011-08-30 04:22:05 UTC
This issue has been assigned the name CVE-2011-2932:

http://www.openwall.com/lists/oss-security/2011/08/19/11

Comment 6 Huzaifa S. Sidhpurwala 2011-09-08 05:36:10 UTC
This issue has addressed in Fedora-14 and Fedora-15 via the following advisories:

https://admin.fedoraproject.org/updates/rubygem-activesupport-2.3.8-4.fc14
https://admin.fedoraproject.org/updates/rubygem-activesupport-3.0.5-4.fc15

Comment 7 Fedora Update System 2014-11-16 04:17:05 UTC
rubygem-actionpack-2.3.18-1.el5, rubygem-activerecord-2.3.18-1.el5, rubygem-activesupport-2.3.18-1.el5 has been pushed to the Fedora EPEL 5 stable repository.  If problems still persist, please make note of it in this bug report.