CVE-2024-35221: Denial of service when publishing a package on rubygems.org
Vulnerability summary
CVE-2024-35221 is a medium (CVSS 4.3) Uncontrolled Resource Consumption vulnerability in rubygems rubygems.org. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 41.5% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 29-05-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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 metrics
2 scores · 2 sources · 1 version- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
42%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.49% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Suse15 products
- ruby2.5&distro=SUSE Enterprise Storage 7.1< 2.5.9-150000.4.49.1
- ruby2.5&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 2.5.9-150000.4.49.1
- ruby2.5&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS< 2.5.9-150000.4.49.1
- ruby2.5&distro=SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS< 2.5.9-150000.4.49.1
- ruby2.5&distro=SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS< 2.5.9-150000.4.49.1
Opensuse1 product
- ruby2.5&distro=openSUSE Leap 15.6< 2.5.9-150000.4.49.1
Rubygems1 product
- rubygems.org< 2024-04-12
3 vendors · 17 products
References
7 links- github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2X Refsource CONFIRM
- en.wikipedia.org/wiki/Billion_laughs_attackX Refsource MISC