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 collisions predictably, which allows context-dependent...
Medium CVSS 5.0
- CVE id
- CVE-2012-5371
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Ruby Runtimes and servers |
<= 1.9.3 | after 1.9.3 |
How to fix it
Upgrade Ruby to a release newer than 1.9.3.
ruby --version
- Install the patched Ruby release of your minor line (rbenv, the ruby image tag) and update .ruby-version.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2012-5371 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2012-5371
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=875236
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/79993
- Web: https://www.131002.net/data/talks/appsec12_slides.pdf
- Web: https://bugzilla.redhat.com/show_bug.cgi?id=875236
- Web: https://exchange.xforce.ibmcloud.com/vulnerabilities/79993
- Web: https://www.131002.net/data/talks/appsec12_slides.pdf
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.