CVE-2012-5371
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.
Severity
not scored
CVSS v3
not scored
Exploit chance (EPSS)
3.330%
chance of exploitation in the next 30 days
higher than 88.8% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
Timeline
- 2012-11-28Published by the CNA11:00 UTC
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| ruby-lang ruby | 1.9no fix listed1.9.1no fix listed1.9.2no fix listed1.9.3no fix listedthrough 1.9.3no fix listed(+1 more) | not listednot listednot listednot listednot listed |
References
- http://securitytracker.com/id?1027747
- http://www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371/
- https://bugzilla.redhat.com/show_bug.cgi?id=875236
- http://www.ubuntu.com/usn/USN-1733-1
- http://2012.appsec-forum.ch/conferences/#c17
- http://asfws12.files.wordpress.com/2012/11/asfws2012-jean_philippe_aumasson-martin_bosslet-hash_flooding_dos_reloaded.pdf
- http://secunia.com/advisories/51253
- http://www.ocert.org/advisories/ocert-2012-001.html
- http://www.osvdb.org/87280
- http://www.securityfocus.com/bid/56484
- https://exchange.xforce.ibmcloud.com/vulnerabilities/79993
- https://www.131002.net/data/talks/appsec12_slides.pdf
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2012-5371'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2012-5371'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2012-5371'curl 'https://api.contrastcyber.com/cve_products/CVE-2012-5371'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).