CVE-2024-35221
MEDIUMrubygems.org - Remote Denial of Service via YAML Alias Bomb in Gem Metadata
Title source: llmDescription
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.
References (3)
Core 3
Core References
Vendor Advisory x_refsource_confirm
https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2
Third Party Advisory x_refsource_misc
https://en.wikipedia.org/wiki/Billion_laughs_attack
Various Sources x_refsource_misc
https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28
Scores
CVSS v3
4.3
EPSS
0.0005
EPSS Percentile
15.9%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-400
Status
published
Products (1)
rubygems/rubygems.org
< 2024-04-12
Published
May 29, 2024
Tracked Since
Feb 18, 2026