
RubyGems.org Patches Critical Flaw That Enabled Remote Code Execution via Malicious Metadata
RubyGems.org has patched a critical vulnerability that allowed attackers with valid API keys to inject malicious regular expressions into gem metadata, potentially leading to remote code execution. The flaw, tracked as GHSA-7h7w-m82c-x2xg, scored 9.0 on the CVSS scale and was fixed on November 4, 2026. While no direct evidence of exploitation was found in recent telemetry, gaps in logging prevent ruling out earlier attempts. Users of the hosted service require no action, but self-hosted operators must update their software. The issue stemmed from a validator that ignored specific YAML tags, allowing Ruby's Psych library to compile attacker-supplied patterns before ownership checks were performed.












