CVE-2012-5370: JRuby denial of service via Hash Collision
5
CVSS Score
Basic Information
CVE ID
GHSA ID
EPSS Score
0.68616%
CWE
Published
5/17/2022
Updated
8/29/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
org.jruby:jruby-parent | maven | < 1.7.1 | 1.7.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability CVE-2012-5370 stems from JRuby's use of MurmurHash2
, which is susceptible to collision attacks. The commit diff shows that the fix replaced the hash implementation in RubyString.java
's strHashCode()
and unseededStrHashCode()
methods with PerlHash
. Prior to the patch, these methods used a vulnerable algorithm (implied to be MurmurHash2
based on CVE details), leading to predictable collisions. The confidence is high because the commit directly modifies these functions to address the issue, and the CVE explicitly links hash collisions to the MurmurHash2
algorithm.