# CVE-2024-35221 — rubygems rubygems.org

> As of 2026-11-30, CVE-2024-35221 is a MEDIUM-severity vulnerability in rubygems rubygems.org, CVSS v3.1 4.3, EPSS 0.8% (56.1th percentile). Threadlinqs Intelligence links 1 tracked threat campaign to CVE-2024-35221, most recently “Critical RubyGems.org Gemspec YAML Regexp Deserialization Flaw Could Have Allowed Code Execution on the Registry (GHSA-7h7w-m82c-x2xg)”.

**Last updated:** 2026-11-30

## What is CVE-2024-35221?

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.

The record classifies CVE-2024-35221 under weakness class [CWE-400](https://intel.threadlinqs.com/cwe/CWE-400). Its CVSS v3 base vector states that the flaw is reachable remotely over the network, needs low-privilege credentials, needs no user interaction. 1 affected-product entry is recorded, across 1 vendor, listed below. The identifier was first published 915 days ago.

## Severity and exploitation probability

- **CVSS v3.1 base score:** 4.3 — MEDIUM (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`)
- **EPSS (FIRST):** 0.8% probability of exploitation in the next 30 days, higher than 56.1% of all scored CVEs
- **CISA KEV:** Not listed in the CISA Known Exploited Vulnerabilities catalog
- **Threadlinqs priority:** 4.4/10 — a Threadlinqs composite of the CVSS base score, the EPSS percentile and public exploit availability
- **Published:** 2024-05-29

## Is CVE-2024-35221 being exploited?

It currently carries a trending score of 19 in the Threadlinqs vulnerability feed.

## Affected products and versions

- **rubygems**: rubygems.org

## How to fix CVE-2024-35221

No vendor patch reference has been recorded for CVE-2024-35221 in the tracked sources. Follow the references below for a fix, and treat the products listed above as exposed until the vendor states otherwise.

## Threat activity tracking CVE-2024-35221

1 tracked threat in the Threadlinqs corpus references CVE-2024-35221, either in the campaign’s CVE list or as an indicator on the campaign record.

- [Critical RubyGems.org Gemspec YAML Regexp Deserialization Flaw Could Have Allowed Code Execution on the Registry (GHSA-7h7w-m82c-x2xg)](https://intel.threadlinqs.com/threat/TL-2026-7070) — CRITICAL · 2026-11-30

## Sources

Enriched from CVE.org, NVD, FIRST EPSS. This product uses the NVD API but is not endorsed or certified by the NVD.

**Vendor advisory and patch**

- [github.com](https://github.com/rubygems/rubygems.org/security/advisories/GHSA-4vc5-whwr-7hh2)

**Other references**

- [en.wikipedia.org](https://en.wikipedia.org/wiki/Billion_laughs_attack)
- [github.com](https://github.com/ruby/ruby/blob/7cf74a2ff28b1b4c26e367d0d67521f7e1fed239/lib/rubygems/safe_yaml.rb#L28)

Canonical: https://intel.threadlinqs.com/cve/CVE-2024-35221
Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Sign up free (Blue): https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds (https://threadlinqs.com/tl-creds); MCP access for AI agents (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp
