Bug 875236 (CVE-2012-5371) - CVE-2012-5371 ruby: Murmur hash-flooding DoS flaw in ruby 1.9 (oCERT-2012-001)
Summary: CVE-2012-5371 ruby: Murmur hash-flooding DoS flaw in ruby 1.9 (oCERT-2012-001)
Alias: CVE-2012-5371
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 875267 875268 904023
Blocks: 875237
TreeView+ depends on / blocked
Reported: 2012-11-09 22:08 UTC by Vincent Danen
Modified: 2021-02-17 08:24 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-09-06 19:29:17 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:0582 0 normal SHIPPED_LIVE Moderate: Red Hat OpenShift Enterprise 1.1.1 update 2013-03-01 00:05:18 UTC

Description Vincent Danen 2012-11-09 22:08:09 UTC
Ruby 1.9.3-p327 was released to correct a hash-flooding DoS vulnerability that only affects 1.9.x and the 2.0.0 preview [1].

As noted in the upstream report:

Carefully crafted sequence of strings can cause a denial of service attack on the service that parses the sequence to create a Hash object by using the strings as keys. For instance, this vulnerability affects web application that parses the JSON data sent from untrusted entity.

This vulnerability is similar to CVS-2011-4815 for ruby 1.8.7. ruby 1.9 versions were using modified MurmurHash function but it's reported that there is a way to create sequence of strings that collide their hash values each other. This fix changes the Hash function of String object from the MurmurHash to SipHash 2-4.

Ruby 1.8.x is not noted as being affected by this flaw.

[1] http://www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371/

Comment 1 Vincent Danen 2012-11-09 22:11:40 UTC
The upstream commit is here:


Comment 3 Vincent Danen 2012-11-10 01:13:40 UTC
Upstream has confirmed that 1.8.x is not affected by this flaw.


Not vulnerable. This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5 and 6.

Comment 4 Vincent Danen 2012-11-10 01:14:39 UTC
Created ruby tracking bugs for this issue

Affects: fedora-17 [bug 875267]
Affects: fedora-18 [bug 875268]

Comment 7 Vincent Danen 2012-11-28 17:56:17 UTC
Fixed in Fedora 17 and 18 via:


Comment 9 errata-xmlrpc 2013-02-28 19:08:29 UTC
This issue has been addressed in following products:

  RHEL 6 Version of OpenShift Enterprise

Via RHSA-2013:0582 https://rhn.redhat.com/errata/RHSA-2013-0582.html

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