Bug 1225905 (CVE-2024-35221) - VUL-0: CVE-2024-35221: ruby2.1,ruby2.5: remote DoS via YAML manifest
Summary: VUL-0: CVE-2024-35221: ruby2.1,ruby2.5: remote DoS via YAML manifest
Status: NEW
Alias: CVE-2024-35221
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Marcus Rückert
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/408097/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-35221:4.3:(AV:...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 08:51 UTC by SMASH SMASH
Modified: 2024-06-04 09:15 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SMASH SMASH 2024-06-04 08:51:40 UTC
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.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-35221
https://www.cve.org/CVERecord?id=CVE-2024-35221
https://en.wikipedia.org/wiki/Billion_laughs_attack
https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28
https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2