Vulnerabilities in pkg:maven/org.jruby/jruby-parent
PACKAGECVE-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.
pkg:maven/org.jruby/jruby-parent
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
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.
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-parent</artifactId>
<version>1.7.1</version>
</dependency>
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
CVE-2012-5370 Affected Jruby parent Versions
1 component(s)| 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?
Which Jruby parent versions are affected?
What version fixes CVE-2012-5370?
Is jruby-parent affected?
What CWE is associated with CVE-2012-5370?
How can I check Maven dependencies for CVE-2012-5370?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}