CVE-2024-35221: Rubygems Rubygems.org

Medium severity, CVSS 4.3. EPSS: 0.9% probability of exploitation activity in the next 30 days.

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.

What to do

The record states a fixed version for the versions it affects. If you run one, update to it.

  • Rubygems Rubygems.org, before 2024-04-12: fixed in 2024-04-12

Affected products

Published 2024-05-29. Last modified 2026-06-17.