All vulnerabilities

Servers and applications

CVE-2012-5371

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…

Severity
Medium 5.0
Published
28 Nov 2012
Last changed
16 Jun 2026
Added to UpHeron
21 Oct 2026
Exploit chance
3.3% in the next 30 daysHigher than 88% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
CWE-310
Attack
Over the network · No login needed
Attacker can
Slow it down
CVSS vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Sources
NVD

Description

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.

From NVD.

Affected software

SoftwareAffected versions
RubyServers and applications · cpe:a:ruby-lang:ruby
  • Version 2.0
  • Version 1.9.3-p194
  • Version 1.9.3-p125
  • Version 1.9.3-p0
All 9 release lines
  • Every version up to 1.9.3
  • Version 1.9
  • Version 1.9.1
  • Version 1.9.2
  • Version 1.9.3
  • Version 1.9.3-p0
  • Version 1.9.3-p125
  • Version 1.9.3-p194
  • Version 2.0

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-5371
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-5371