VulnerabilitiesCritical1 source
RubyGems.org fixes critical flaw that could allow code execution on the registry
First reported Updated
RubyGems.org, the central registry for Ruby gems, has patched a critical flaw in its gem upload process. Any account holding a push-capable API key could inject an attacker-controlled regular expression into gem metadata. According to the registry's maintainers, in local testing they chained this with a memory corruption bug in Ruby's regexp compiler and reached remote code execution. The source text is a short summary only, so details of affected versions and exploitation in the wild are not stated. Developers who rely on the registry should watch for official guidance.
Why it matters
A compromised registry could let attackers distribute malicious code to Ruby developers worldwide.
Coverage (1)
The Hacker News
Critical RubyGems Flaw Could Have Let Any Gem Publisher Run Code on the Registry
RubyGems.org, the central registry for Ruby gems, has patched a critical flaw in its gem upload process. Any account holding a push-capable API key could inject an attacker-controlled regular expression into gem metadata. According to the registry's maintainers, in local testing they chained this with a memory corruption bug in Ruby's regexp compiler and reached remote code execution. The source text is a short summary only, so details of affected versions and exploitation in the wild are not stated. Developers who rely on the registry should watch for official guidance.
- Any push-capable API key could inject a malicious regex into gem metadata
- Chained with a Ruby regexp compiler memory corruption bug in local tests
- Maintainers report achieving remote code execution on the registry
Summary based on the source's feed description.
Was this useful?
Summaries are written by RedCVE with AI assistance, based on the sources' reporting. Always check the original source.