Vulnerabilities · 2012 · Ruby-lang
CVE-2012-5371
Ruby-lang Ruby vulnerability
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.
Affected products
Ruby. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ruby-lang Ruby runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.ruby-lang.org/en/news/2012/11/09/ruby19-hashdos-cve-2012-5371/ · Patch
- securitytracker.com/id?1027747 · Patch
- bugzilla.redhat.com/show_bug.cgi?id=875236 · Patch
- 2012.appsec-forum.ch/conferences/#c17
- asfws12.files.wordpress.com/2012/11/asfws2012-jean_philippe_aumasson-martin_bosslet-hash_f
- secunia.com/advisories/51253
- www.ocert.org/advisories/ocert-2012-001.html
- www.osvdb.org/87280
- nvd.nist.gov/vuln/detail/CVE-2012-5371
- cve.org/CVERecord?id=CVE-2012-5371
More vulnerabilities in Ruby-lang products
CVE-2026-46727CVE-2025-58767CVE-2025-43857CVE-2025-27788CVE-2025-27221CVE-2025-27220CVE-2025-27219CVE-2025-6442All 115
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.