Every CVE Search/ Get API key

CVE-2024-35221

Denial of service when publishing a package on rubygems.org

4.3 MediumFix available

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

0.49%Up 0.4 points since May 30, 2024
90%50%10%1%

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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
ruby
openEuler:20.03-LTS-SP4
before 2.5.8-125.oe2003sp4
2.5.8-125.oe2003sp4
ruby
openEuler:22.03-LTS-SP1
before 3.0.3-135.oe2203sp1
3.0.3-135.oe2203sp1
ruby
openEuler:22.03-LTS-SP3
before 3.0.3-135.oe2203sp3
3.0.3-135.oe2203sp3
ruby
openEuler:24.03-LTS
before 3.2.2-142.oe2403
3.2.2-142.oe2403
ruby2.5
SUSE:Linux Enterprise Module for Basesystem 15 SP6
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
openSUSE:Leap 15.6
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE: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
Affected packages
PackageAffectedFixed
ruby2.5
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise Server 15 SP3-LTSS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise Server 15 SP4-LTSS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise Server 15 SP5-LTSS
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise Server for SAP Applications 15 SP3
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise Server for SAP Applications 15 SP4
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Linux Enterprise Server for SAP Applications 15 SP5
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Manager Proxy LTS 4.3
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Manager Server LTS 4.3
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE:Enterprise Storage 7.1
before 2.5.9-150000.4.49.1
2.5.9-150000.4.49.1
ruby2.5
SUSE: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

History
RecordedChangedSources
affected, facts
aliases, publishedEUVD
first indexedCVE 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

Show 20 moreShow less
MoveEnter Open