Skip to content
OpenAdvisories
Medium · 4.3 CVE-2024-35221 EUVD-2024-35247

Denial of service when publishing a package on rubygems.org

Published May 29, 2024 · Updated Aug 2, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
rubygems rubygems.org < 2024-04-12 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP7 ruby2.5 2.5.9-150700.24.3.1 SUSE-SU-2025:4264-1
SLES 15 SP6 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-1
SLES 15 SP5 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLES 15 SP4 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLES 15 SP3 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLES for SAP 15 SP4 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLES for SAP 15 SP3 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLE HPC 15 SP5 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLE HPC 15 SP4 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SLE HPC 15 SP3 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SUSE Manager Server LTS 4.3 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SUSE Manager Proxy LTS 4.3 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
SUSE Enterprise Storage 7.1 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-2
ReleasePackageFixed inAdvisory
openSUSE Leap 15.6 ruby2.5 2.5.9-150000.4.49.1 SUSE-SU-2025:02814-1

Advisories 3

References