RubyGems.org
ProductAm I affected?
Each result covers one listed vulnerability. Check your vendor’s current advisories for broader coverage. This check runs without saving your version.
Security timeline
- Vulnerability reported by The Hacker NewsRubyGems.org fixes critical flaw that could have let gem publishers run code on the registry
- Vulnerability reported by GBHackersCritical RubyGems.org flaw could allow code execution via YAML deserialisation
- Vulnerability reported by Cyber Security NewsCritical RubyGems.org flaw could allow code execution on registry servers; no exploitation found
Recent news
RubyGems.org fixes critical flaw that could have let gem publishers run code on the registry
RubyGems.org has patched a critical flaw that allowed any account holding a push-capable API key to inject an attacker-controlled regular expression through gem upload metadata. The maintainers reported that, in local testing, they chained this with a memory corruption bug in Ruby's regexp compiler to achieve remote code execution.
Critical RubyGems.org flaw could allow code execution via YAML deserialisation
RubyGems.org disclosed a critical flaw in its package upload service. An authenticated account with a publishing API key could reach a vulnerable metadata parser without owning an existing gem, and maintainers showed remote code execution in local testing on Ruby 4.0.9. They did not reproduce it against the live registry.
Critical RubyGems.org flaw could allow code execution on registry servers; no exploitation found
A flaw in RubyGems.org's gem upload processing lets an authenticated publisher potentially execute code on registry servers, rated CVSS 4.0 9.0 in advisory GHSA-7h7w-m82c-x2xg. The validator and YAML parser read the same gemspec metadata differently, so one field is treated as text by one component and built as a regular expression by the other. Maintainers found no direct exploitation across 29,100 gems published from 5 October to 4 November 2026, but logs are limited. Hosted users need no action, while self-hosted operators must deploy a code revision containing the fix.