CWE
400
EPSS
0.045%
Advisory Published
Updated

CVE-2024-35221: Denial of service when publishing a package on rubygems.org

First published: Wed May 29 2024(Updated: )

Rubygems.org is the Ruby community's gem hosting service. A Gem publisher can cause a Remote DoS when publishing a Gem. This is due to how Ruby reads the Manifest of Gem files when using Gem::Specification.from_yaml. from_yaml makes use of SafeYAML.load which allows YAML aliases inside the YAML-based metadata of a gem. YAML aliases allow for Denial of Service attacks with so-called `YAML-bombs` (comparable to Billion laughs attacks). This was patched. There is is no action required by users. This issue is also tracked as GHSL-2024-001 and was discovered by the GitHub security lab.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
RubyGems

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-2024-35221?

    CVE-2024-35221 is considered a critical vulnerability due to its potential for causing a Remote Denial of Service (DoS) when a Gem is published.

  • How do I fix CVE-2024-35221?

    To mitigate CVE-2024-35221, ensure that your RubyGems environment is updated to the latest version that incorporates fixes for the vulnerability.

  • What types of systems are affected by CVE-2024-35221?

    CVE-2024-35221 affects systems using RubyGems, particularly the RubyGems.org service for publishing Gems.

  • How does CVE-2024-35221 exploit Ruby's processing of YAML files?

    CVE-2024-35221 exploits the way Ruby reads the Manifest of Gem files via Gem::Specification.from_yaml, leading to possible Remote DoS.

  • Can CVE-2024-35221 be exploited by any registered Gem publisher?

    Yes, any registered Gem publisher can exploit CVE-2024-35221 by crafting specific Gem files to trigger the vulnerability.

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