Skip to content
Noroxi
NVD / CVE Program· CNA mitre

CVE-2012-5371: 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…

MediumCVSS 5.0 · v2.0—No exploit Fix available

Noroxi assessment

Priority: Monitor (action score 21/100)

  • The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
  • Probability of exploitation in the next 30 days: 3.3% (FIRST EPSS); higher than 88.8% of all records.
  • No special conditions are required; it is repeatable.
  • Fixed version: ruby1.9.1 (Debian:6.0) 1.9.2.0-2+deb6u5; ruby3.3 (Red Hat:hummingbird:1) 0:3.3.10-23.1.hum1; ruby3.3-bundled-gems (Red Hat:hummingbird:1) 0:3.3.10-23.1.hum1.

Low priority for now. Upgrade to ruby1.9.1 (Debian:6.0) 1.9.2.0-2+deb6u5; ruby3.3 (Red Hat:hummingbird:1) 0:3.3.10-23.1.hum1; ruby3.3-bundled-gems (Red Hat:hummingbird:1) 0:3.3.10-23.1.hum1 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

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.

Published
Nov 28, 2012
Updated
Jun 16, 2026
EPSS
3.3% · 88th percentile

Report tools

JSON

Action score

21

Monitor

Low priority for now.

CVSS
20 / 40 · 5.0 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.3%

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • No public exploit code on record
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2012-5371

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits every 10 minutes on paid plans, on the hour on the free plan.

Your free account also gets you

  • CVE alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools, at most 30 a day (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools
Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
ruby-langruby

Affected versions

NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.

  • ruby-lang rubyup to 1.9.3 inclusive
  • ruby-lang ruby1.9
  • ruby-lang ruby1.9.1
  • ruby-lang ruby1.9.2
  • ruby-lang ruby1.9.3
  • ruby-lang ruby2.0

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Debian:6.0ruby1.9.1before 1.9.2.0-2+deb6u51.9.2.0-2+deb6u5
Red Hat:hummingbird:1ruby3.3before 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-bundled-gemsbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-default-gemsbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-develbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-docbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.3-libsbefore 0:3.3.10-23.1.hum10:3.3.10-23.1.hum1
Red Hat:hummingbird:1ruby3.4before 0:3.4.8-31.1.hum10:3.4.8-31.1.hum1
Red Hat:hummingbird:1ruby3.4-bundled-gemsbefore 0:3.4.8-31.1.hum10:3.4.8-31.1.hum1
Red Hat:hummingbird:1ruby3.4-default-gemsbefore 0:3.4.8-31.1.hum10:3.4.8-31.1.hum1
Red Hat:hummingbird:1ruby3.4-develbefore 0:3.4.8-31.1.hum10:3.4.8-31.1.hum1
Red Hat:hummingbird:1ruby3.4-docbefore 0:3.4.8-31.1.hum10:3.4.8-31.1.hum1
Red Hat:hummingbird:1ruby3.4-libsbefore 0:3.4.8-31.1.hum10:3.4.8-31.1.hum1
Red Hat:hummingbird:1ruby4.0before 0:4.0.0-33.3.hum10:4.0.0-33.3.hum1
Red Hat:hummingbird:1ruby4.0-bundled-gemsbefore 0:4.0.0-33.3.hum10:4.0.0-33.3.hum1
Red Hat:hummingbird:1ruby4.0-default-gemsbefore 0:4.0.0-33.3.hum10:4.0.0-33.3.hum1
Red Hat:hummingbird:1ruby4.0-develbefore 0:4.0.0-33.3.hum10:4.0.0-33.3.hum1
Red Hat:hummingbird:1ruby4.0-docbefore 0:4.0.0-33.3.hum10:4.0.0-33.3.hum1
Red Hat:hummingbird:1ruby4.0-libsbefore 0:4.0.0-33.3.hum10:4.0.0-33.3.hum1
Red Hat:openshift:1::el6graphvizbefore 0:2.26.0-10.el60:2.26.0-10.el6
Red Hat:openshift:1::el6graphviz-debuginfobefore 0:2.26.0-10.el60:2.26.0-10.el6
Red Hat:openshift:1::el6graphviz-develbefore 0:2.26.0-10.el60:2.26.0-10.el6
Red Hat:openshift:1::el6graphviz-docbefore 0:2.26.0-10.el60:2.26.0-10.el6
Red Hat:openshift:1::el6graphviz-gdbefore 0:2.26.0-10.el60:2.26.0-10.el6

+64

Other highest-scoring records for the same primary product.

  • CVE-2017-17405Ruby before 2.4.3 allows Net::FTP command injection.
    57Plan
  • CVE-2008-3656Algorithmic complexity vulnerability in the WEBrick::HTTPUtils.split_header_value function in WEBrick::HTTP::DefaultFileHandler in WEBrick…
    52Plan
  • CVE-2021-28966In Ruby through 3.0 on Windows, a remote attacker can submit a crafted path when a Web application handles a parameter with TmpDir.
    47Plan

Published before and after this one in the same product

  • ← EarlierCVE-2012-5380Oct 11, 2012 · Untrusted search path vulnerability in the installation functionality in Ruby 1.9.3-p194, when installed in the top-level C:\ directory…
    26Monitor
  • ← EarlierCVE-2012-4522Nov 24, 2012 · The rb_get_path_check function in file.c in Ruby 1.9.3 before patchlevel 286 and Ruby 2.0.0 before r37163 allows context-dependent…
    21Monitor
  • Later →CVE-2013-1821Apr 9, 2013 · lib/rexml/text.rb in the REXML parser in Ruby before 1.9.3-p392 allows remote attackers to cause a denial of service (memory consumption…
    22Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
debian:ruby1.9.11.9.2.0-2+deb6u5 · Debian:6.0Package registry (OSV)
red hat:graphviz0:2.26.0-10.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:graphviz-debuginfo0:2.26.0-10.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:graphviz-devel0:2.26.0-10.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:graphviz-doc0:2.26.0-10.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:graphviz-gd0:2.26.0-10.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:graphviz-ruby0:2.26.0-10.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:openshift-console0:0.0.16-1.el6op · Red Hat:openshift:1::el6Package registry (OSV)
red hat:openshift-origin-broker0:1.0.11-1.el6op · Red Hat:openshift:1::el6Package registry (OSV)
red hat:openshift-origin-broker-util0:1.0.15-1.el6op · Red Hat:openshift:1::el6Package registry (OSV)
red hat:ruby193-ruby0:1.9.3.327-25.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:ruby193-ruby-debuginfo0:1.9.3.327-25.el6 · Red Hat:openshift:1::el6Package registry (OSV)
red hat:ruby193-ruby-devel0:1.9.3.327-25.el6 · Red Hat:openshift:1::el6Package registry (OSV)

Exploit status

No known public exploit

No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

No dated events beyond publication.

Bug bounty scope

The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.

Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate.

Technical details

Attack conditions

  • No special conditions are required; it is repeatable.

If successful

Confidentiality
none
Integrity
none
Availability
P · the service can be disrupted
Attack complexity
Low
Confidentiality impact
None
Integrity impact
None
Availability impact
P

CVSS vector

AV:N/AC:L/Au:N/C:N/I:N/A:P

nvd-primary

Attack context

MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.

MITRE has no CAPEC/ATT&CK mapping for this CWE.

References

All records