Live threats

All CVEs / Ruby-lang

CVE-2012-5371Ruby-lang Ruby

Medium 5.0 No auth needed

Priority
45
CVSS 2.0
5.0
EPSS
3.3%
probability of exploitation in 30 days · percentile 89
Auth required
No
Published
Nov 28, 2012
Updated
Jun 16, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-310
Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P

What happens

Ruby (aka CRuby) 1.9 before 1.9.3-p327 and 2.0 before r37575 computes hash values without properly restricting the ability to trigger hash collisions predictably, which allows context-dependent attackers to cause a denial of service (CPU consumption) via crafted input to an application that maintains a hash table, as demonstrated by a universal multicollision attack against a variant of the MurmurHash2 algorithm, a different vulnerability than CVE-2011-4815.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby≤ 1.9.3
ruby-langruby1.9
ruby-langruby1.9.1
ruby-langruby1.9.2
ruby-langruby1.9.3
ruby-langruby1.9.3
ruby-langruby1.9.3
ruby-langruby1.9.3
ruby-langruby2.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.