Vulnerabilities in pkg:maven/org.jruby/jruby-parent

PACKAGE
Advisory Identifier: GHSA-fmmq-j7pq-f85c
Advisory Summary

CVE-2012-5370 is a MODERATE denial of service vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Jruby parent libraries in the Maven ecosystem. The issue involves jruby denial of service via hash collision. Remediation is available by upgrading affected packages to version 1.7.1.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.jruby/jruby-parent

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.jruby/jruby-parent. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-fmmq-j7pq-f85c CVE-2012-5370 MODERATE JRuby denial of service via Hash Collision
GHSA-v6j3-7jrw-hq2p CVE-2011-5036 MODERATE Rack Gem Subject to Denial of Service via Hash Collisions

CVE-2012-5370 at a Glance

CVE Identifier CVE-2012-5370
GHSA Identifier GHSA-fmmq-j7pq-f85c
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Jruby parent
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2012-5370

To remediate this vulnerability, upgrade all affected Jruby parent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.jruby:jruby-parent fixed: 1.7.1
<dependency>
    <groupId>org.jruby</groupId>
    <artifactId>jruby-parent</artifactId>
    <version>1.7.1</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.jruby

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2012-5370, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.jruby

Analyze the terminal output to locate any version of Jruby parent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.jruby command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Jruby parent, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

JRuby 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 the MurmurHash2 algorithm, a different vulnerability than CVE-2011-4838.

CVE-2012-5370 Affected Jruby parent Versions

1 component(s)
Fixed Versions:
1.7.1
Product / Package Ecosystem Affected Versions Fixed Version
org.jruby:jruby-parent
Maven
< 1.7.1
1.7.1

References

Frequently Asked Questions

What is CVE-2012-5370?
CVE-2012-5370 is a security vulnerability in Jruby parent involving JRuby denial of service via Hash Collision under CWE-400: Uncontrolled Resource Consumption.
Which Jruby parent versions are affected?
Affected versions include releases prior to 1.7.1 across affected packages: org.jruby:jruby-parent.
What version fixes CVE-2012-5370?
Upgrading to 1.7.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jruby-parent affected?
Yes, org.jruby:jruby-parent is affected in releases prior to 1.7.1. Upgrade your dependency to 1.7.1 or later.
What CWE is associated with CVE-2012-5370?
CVE-2012-5370 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Maven dependencies for CVE-2012-5370?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jruby'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-fmmq-j7pq-f85c",
  "modified" : "2023-08-29T20:33:46Z",
  "published" : "2022-05-17T04:17:07Z",
  "aliases" : [ "CVE-2012-5370" ],
  "summary" : "JRuby denial of service via Hash Collision",
  "details" : "JRuby 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 the MurmurHash2 algorithm, a different vulnerability than CVE-2011-4838.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jruby:jruby-parent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-5370"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jruby/jruby/commit/5e4aab28b26fd127112b76fabfac9a33b64caf77"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=880671"
  }, {
    "type" : "WEB",
    "url" : "http://jruby.org/2012/12/03/jruby-1-7-1"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2013-0533.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-400" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-29T20:33:46Z",
    "nvd_published_at" : "2012-11-28T13:03:00Z"
  }
}