{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2024-35221 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2024-35221 is a medium-severity denial of service vulnerability in rubygems.org, published on 29 May 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-35221 and fix it if it is affected.\n\nWhat it is: CVE-2024-35221 is a medium-severity denial of service vulnerability in rubygems.org, published on 29 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-35221 in the wild and no public exploit code.\n\nAffected product: rubygems.org. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-35221/ (Markdown: https://insights.sbomify.com/CVE-2024-35221/index.md)","id":"CVE-2024-35221","markdown":"https://insights.sbomify.com/CVE-2024-35221/index.md","name":"CVE-2024-35221","record":{"aliases":["OESA-2024-1780","OESA-2024-1938","SUSE-SU-2025:02814-1","SUSE-SU-2025:02814-2"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby gem hosting service","requires_auth":"low_privilege","summary":"A remote attacker can cause a denial of service on rubygems.org by publishing a gem with malicious YAML aliases, requiring a patch to the platform.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"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.","ecosystems":["SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy LTS 4.3","SUSE:Manager Server LTS 4.3","openSUSE:Leap 15.6"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of service when publishing a package on rubygems.org","id":"CVE-2024-35221","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"denial_of_service","year":"2024"},"n_packages":16,"n_references":3,"next":{"headline":"iFrames Bypass Origin Checks for Tauri API Access Control","id":"CVE-2024-35222"},"packages":[{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:02814-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Manager Proxy LTS 4.3","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Manager%20Proxy%20LTS%204.3","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"SUSE:Manager Server LTS 4.3","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/suse/ruby2.5\u0026distro=SUSE%20Manager%20Server%20LTS%204.3","source":"SUSE-SU-2025:02814-2"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.5.9-150000.4.49.1"],"introduced":["0"],"last_affected":[],"package":"ruby2.5","purl":"pkg:rpm/opensuse/ruby2.5\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02814-1"}],"prev":{"headline":"@fastify/session reuses destroyed session cookie","id":"CVE-2024-35220"},"products":["rubygems.org"],"published":"2024-05-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["rubygems"]},"summary":"A remote attacker can cause a denial of service on rubygems.org by publishing a gem with malicious YAML aliases, requiring a patch to the platform.","url":"https://insights.sbomify.com/CVE-2024-35221/"}