CVE-2024-35221
Denial of service when publishing a package on rubygems.org
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.3
Denial of service when publishing a package on rubygems.org
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.
- Record
CVE-2024-35221- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
EUVDEUVD-2024-35247
4.3
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.
- Record
EUVD-2024-35247- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-03
NVD
4.3
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.
- Record
CVE-2024-35221- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-400
- Updated
- 2026-11-02
OSVOESA-2024-1780
4.3
ruby security update
Ruby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).
Security Fix(es):
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.(CVE-2024-35221)
- Record
OESA-2024-1780- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVOESA-2024-1938
4.3
ruby security update
Ruby is a fast and easy interpreted scripting language for object-oriented programming. It has many functions for processing text Files and perform system management tasks (such as Perl).
Security Fix(es):
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.(CVE-2024-35221)
- Record
OESA-2024-1938- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVSUSE-SU-2025:02814-1 No score
Security update for ruby2.5
This update for ruby2.5 fixes the following issues:
- CVE-2024-35221: Fixed remote denial of service via YAML manifest (bsc#1225905)
- Record
SUSE-SU-2025:02814-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:02814-2 No score
Security update for ruby2.5
This update for ruby2.5 fixes the following issues:
- CVE-2024-35221: Fixed remote denial of service via YAML manifest (bsc#1225905)
- Record
SUSE-SU-2025:02814-2- Updated
- 2026-11-02
OSVSUSE-SU-2025:4264-1 No score
Security update for ruby2.5
This update for ruby2.5 fixes the following issues:
- CVE-2024-35221: Fixed remote DoS via YAML manifest (bsc#1225905)
- CVE-2024-47220: Fixed HTTP request smuggling in WEBrick (bsc#1230930)
- CVE-2024-49761: Fixed ReDOS vulnerability by updating REXML to 3.3.9 (bsc#1232440)
- CVE-2025-24294: Fixed denial of service (DoS) caused by an insufficient check on the length of a decompressed domain name within a DNS packet in resolv gem (bsc#1246430)
- CVE-2025-27219: Fixed denial of service in CGI::Cookie.parse (bsc#1237804)
- CVE-2025-27220: Fixed ReDoS in CGI::Util#escapeElement (bsc#1237806)
- CVE-2025-27221: Fixed userinfo leakage in URI#join, URI#merge and URI#+ (bsc#1237805)
- CVE-2025-6442: Fixed ruby WEBrick read_header HTTP request smuggling vulnerability (bsc#1245254)
- Record
SUSE-SU-2025:4264-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
rubyopenEuler:20.03-LTS-SP4 |
before 2.5.8-125.oe2003sp4 | 2.5.8-125.oe2003sp4 |
rubyopenEuler:22.03-LTS-SP1 |
before 3.0.3-135.oe2203sp1 | 3.0.3-135.oe2203sp1 |
rubyopenEuler:22.03-LTS-SP3 |
before 3.0.3-135.oe2203sp3 | 3.0.3-135.oe2203sp3 |
rubyopenEuler:24.03-LTS |
before 3.2.2-142.oe2403 | 3.2.2-142.oe2403 |
ruby2.5SUSE:Linux Enterprise Module for Basesystem 15 SP6 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5openSUSE:Leap 15.6 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ruby2.5SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Server 15 SP3-LTSS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Server 15 SP4-LTSS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Server 15 SP5-LTSS |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Server for SAP Applications 15 SP3 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Server for SAP Applications 15 SP4 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Server for SAP Applications 15 SP5 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Manager Proxy LTS 4.3 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Manager Server LTS 4.3 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Enterprise Storage 7.1 |
before 2.5.9-150000.4.49.1 | 2.5.9-150000.4.49.1 |
ruby2.5SUSE:Linux Enterprise Module for Basesystem 15 SP7 From an advisory covering 8 CVEs |
before 2.5.9-150700.24.3.1 | 2.5.9-150700.24.3.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, published | EUVD | |
| first indexed | CVE List, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-35221 is a medium vulnerability (CVSS 4.3) in Rubygems Rubygems.org, published May 29, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.49%, the 42nd percentile. Fixed in ruby 2.5.8-125.oe2003sp4.
References
github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2
en.wikipedia.org/wiki/Billion_laughs_attack
github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2024-1780
nvd.nist.gov/vuln/detail/CVE-2024-35221
openeuler.org/en/security/security-bulletins/detail?id=openEuler-SA-2024-1938
Show 20 moreShow less
suse.com/support/update/announcement/2025/suse-su-202502814-1
bugzilla.suse.com/1225905
suse.com/security/cve/CVE-2024-35221
suse.com/support/update/announcement/2025/suse-su-202502814-2
suse.com/support/update/announcement/2025/suse-su-20254264-1
bugzilla.suse.com/1230930
bugzilla.suse.com/1232440
bugzilla.suse.com/1235773
bugzilla.suse.com/1237804
bugzilla.suse.com/1237805
bugzilla.suse.com/1237806
bugzilla.suse.com/1245254
bugzilla.suse.com/1246430
suse.com/security/cve/CVE-2024-47220
suse.com/security/cve/CVE-2024-49761
suse.com/security/cve/CVE-2025-24294
suse.com/security/cve/CVE-2025-27219
suse.com/security/cve/CVE-2025-27220
suse.com/security/cve/CVE-2025-27221
suse.com/security/cve/CVE-2025-6442