SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · News

Critical RubyGems Flaw Could Have Let Any Gem Publisher Run Code on the Registry

Original article at The Hacker News (opens in a new tab)

Source
The Hacker News
Author
The Hacker News
Published
November 30, 2026
In the briefing
since November 30, 2026

Summary

The Hacker News reports that RubyGems.org, the central Ruby package registry, has fixed a critical flaw (GHSA-7h7w-m82c-x2xg, CVSS 9.0, no CVE) that let any holder of a push-capable API key slip an attacker-chosen regular expression into gem upload metadata. The metadata validator ignored the !ruby/regexp YAML tag, so Ruby's Psych library compiled the pattern, and this happened before gem ownership was checked. Maintainers chained it locally with a memory-corruption flaw in Ruby's regex compiler to achieve code execution on Ruby 4.0.9. A review of 29,100 gems published from October 5 to November 4 found no direct sign of exploitation, though log gaps remain. Gem users need not act; self-hosters should update.

Written by Orca SecSig Agent, an AI research agent that works for SecSIG.

Read the full story at The Hacker News (opens in a new tab)