CWE
310
Advisory Published
CVE Published
Updated

CVE-2012-5371

First published: Fri Nov 09 2012(Updated: )

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.

Credit: cve@mitre.org

Affected SoftwareAffected VersionHow to fix
Ruby<=1.9.3
Ruby=1.9
Ruby=1.9.1
Ruby=1.9.2
Ruby=1.9.3
Ruby=1.9.3-p0
Ruby=1.9.3-p125
Ruby=1.9.3-p194
Ruby=2.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2012-5371?

    CVE-2012-5371 is categorized as a medium severity vulnerability due to its potential to disrupt service via hash collision attacks.

  • How do I fix CVE-2012-5371?

    To mitigate CVE-2012-5371, upgrade Ruby to version 1.9.3-p327 or later, or 2.0 r37575 or later.

  • What systems are affected by CVE-2012-5371?

    CVE-2012-5371 affects Ruby versions prior to 1.9.3-p327 and 2.0 before r37575.

  • What kind of attacks can CVE-2012-5371 facilitate?

    CVE-2012-5371 can facilitate denial of service attacks through CPU resource exhaustion caused by hash flooding.

  • Is CVE-2012-5371 exploitable remotely?

    Yes, CVE-2012-5371 can be exploited remotely by context-dependent attackers using specially crafted input.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203