Read the docs
TI-2024-23291 Aliases CVE-2024-35221

Denial of service when publishing a package on rubygems.org

Priority LOW 21CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-400.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00494 42nd percentileScored 2026-11-07
Fix Fixed rubygems.org (rubygems): 2024-04-12

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
rubygemsrubygems.orgbefore 2024-04-122024-04-12Patch availableCNA
  • rubygems.org Vendorrubygems Affected before 2024-04-12 Fixed in 2024-04-12 Patch available CNA

Remediation

  • Fix · CNA rubygems.org (rubygems) Fixed in 2024-04-12

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-35221

References

  • TI-2022-11761 Unauthorized takeover for new versions of some platform-specific gems CVSS 3.1HIGH 7.7
  • TI-2017-00851 Deserialization of untrusted data in HackerOne RubyGems CVSS 3.0CRITICAL 9.8
  • TI-2017-00849 Path traversal in HackerOne RubyGems CVSS 3.0HIGH 7.5
  • TI-2017-00847 Code injection in HackerOne RubyGems CVSS 3.0CRITICAL 9.8
  • TI-2024-14379 rubygems.org MFA Bypass through password reset function could allow account takeover CVSS 3.1CRITICAL 9.8
  • TI-2013-00203 The JSON gem before 1.5.5, 1.6.x before 1.6.8, and 1.7.x before 1.7.7 for Ruby allows… CVSS 2.0HIGH 7.5
See all 36 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences