{"id":"CVE-2024-35221","state":"PUBLISHED","title":"Denial of service when publishing a package on rubygems.org","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.","publishedAt":"2024-05-29T20:18:06.763Z","updatedAt":"2024-08-02T03:07:46.784Z","severity":{"score":4.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["rubygems rubygems.org"],"affected":[{"vendor":"rubygems","product":"rubygems.org","versions":[{"version":"< 2024-04-12","status":"affected"}]}],"references":["https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2","https://en.wikipedia.org/wiki/Billion_laughs_attack","https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35221.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-35221","state":"PUBLISHED","datePublished":"2024-05-29T20:18:06.763Z","dateUpdated":"2024-08-02T03:07:46.784Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-05-14T15:39:41.783Z"},"containers":{"cna":{"title":"Denial of service when publishing a package on rubygems.org","descriptions":[{"lang":"en","value":"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":[{"vendor":"rubygems","product":"rubygems.org","versions":[{"version":"< 2024-04-12","status":"affected"}]}],"references":[{"url":"https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2","name":"https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2","tags":["x_refsource_CONFIRM"]},{"url":"https://en.wikipedia.org/wiki/Billion_laughs_attack","name":"https://en.wikipedia.org/wiki/Billion_laughs_attack","tags":["x_refsource_MISC"]},{"url":"https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28","name":"https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":4.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-05-29T20:18:06.763Z"},"source":{"advisory":"GHSA-4vc5-whwr-7hh2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-06T18:59:20.588645Z","id":"CVE-2024-35221","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-06T18:59:30.878Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2","name":"https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://en.wikipedia.org/wiki/Billion_laughs_attack","name":"https://en.wikipedia.org/wiki/Billion_laughs_attack","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28","name":"https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:07:46.784Z"}}]}}}