CVE-2012-5371 Denial of service in n/a

Medium 5.0 Published Updated

Attackers can cause denial of service via CPU exhaustion by sending crafted input to Ruby applications using vulnerable hash implementations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2012-5371?

CVE-2012-5371 is a medium-severity denial of service vulnerability in Ruby-Lang Ruby, published on 28 Nov 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-310

Which versions are affected by CVE-2012-5371?

It affects 1 product.

Products include Ruby-Lang Ruby.

How do I fix CVE-2012-5371?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2012-5371 being exploited?

There is no known exploitation of CVE-2012-5371 in the wild and no public exploit code.

All Ruby-Lang Ruby vulnerabilities

Sources

Also known as CVE-2011-5371, GHSA-phrv-cj28-9h57.

Is CVE-2012-5371 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free