Medium severity · published May 29, 2024
CVE-2024-35221
Denial of service when publishing a package on rubygems.org
4.3
CVSS
0.5%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 42% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RU
rubygems.org · rubygems
< 2024-04-12 · source: vendor
Affected product
RU
rubygems.org
rubygems
More from rubygems.org
9.8
CVE-2024-21654
rubygems.org MFA Bypass through password reset function could allow account takeover
7.5
CVE-2023-40165
Unauthorized gem replacement for full names ending in numbers on rubygems.org
7.5
CVE-2022-29218
RubyGems is a package registry used to supply software for the Ruby language ecosystem
7.5
CVE-2022-29176
Rubygems is a package registry used to supply software for the Ruby language ecosystem