# CVE-2012-5370: JRuby denial of service via Hash Collision

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.0
- **CVSS:** 5.0 (v2.0, NVD) `AV:N/AC:L/Au:N/C:N/I:N/A:P`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Authentication: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Partial
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.25% (percentile 84, 2026-11-26)
- **CWE:** CWE-310
- **Aliases:** GHSA-fmmq-j7pq-f85c
- **Published:** 2012-11-28T11:00:00.000Z
- **Modified:** 2026-09-10T03:49:22.538Z

## Who should check

- Projects that depend on Maven package org.jruby:jruby-parent (\< 1.7.1)
- Anyone running n/a (versions: see the vendor advisory)

## Description

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.

## Affected and fixed versions

- Maven `org.jruby:jruby-parent`: affected \< 1.7.1; fixed 1.7.1 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade org.jruby:jruby-parent to 1.7.1 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2012-5370. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2012-5370.md
Affected: org.jruby:jruby-parent < 1.7.1
Fixed in: 1.7.1

Steps:
1. Search this machine and project for org.jruby:jruby-parent (Maven), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2012-5370 being exploited?

There is no confirmed exploitation: CVE-2012-5370 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2012-5370?

Medium: CVSS 5.0 (v2.0, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2012-5370?

org.jruby:jruby-parent \< 1.7.1.

### Is there a fix for CVE-2012-5370?

Yes. Fixed in 1.7.1. Upgrade org.jruby:jruby-parent to 1.7.1 or later.

### How do I check if I'm affected by CVE-2012-5370?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <http://rhn.redhat.com/errata/RHSA-2013-0533.html>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2012-5370>
- patch: <https://github.com/jruby/jruby/commit/5e4aab28b26fd127112b76fabfac9a33b64caf77>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=880671>
- other: <http://asfws12.files.wordpress.com/2012/11/asfws2012-jean_philippe_aumasson-martin_bosslet-hash_flooding_dos_reloaded.pdf>
- other: <https://www.131002.net/data/talks/appsec12_slides.pdf>
- other: <http://2012.appsec-forum.ch/conferences/#c17>
- other: <http://www.ocert.org/advisories/ocert-2012-001.html>
- other: <http://jruby.org/2012/12/03/jruby-1-7-1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2012-5370>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fmmq-j7pq-f85c> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2012-5370> · JSON: <https://flawdb.com/api/v1/entries/CVE-2012-5370>
