Skip to main content
← All vulnerabilities
CVE-2024-35221

Denial of service when publishing a package on rubygems.org

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2024-04-12
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • rubygems rubygems.org

    fixed in 2024-04-12

References 3

GitHub · rubygems/rubygems.org

en.wikipedia.org

GitHub · ruby/ruby