RubyGems.org patches critical upload flaw; no live exploitation found
November 30: The Hacker News adds HTTP 422 rejection, says logs cannot rule out earlier uploads, and notes related Ruby regexp fixes in 4.0.10, 3.4.13, and 3.3.14.
RubyGems.org fixed a critical upload parser flaw; local tests showed code execution, but reviewers found no live exploitation.
RubyGems.org disclosed GHSA-7h7w-m82c-x2xg on November 26, 2026, a package-upload flaw scored CVSS 4.0 9.0 with no CVE. A publishing API key could supply gemspec metadata that the validator treated as text while Ruby Psych compiled a !ruby/regexp tag before ownership checks. Maintainers chained that mismatch with a regex-compiler memory bug in local tests on Ruby 4.0.9 and ran code as the upload worker; the live service showed no code execution. Telemetry and 29,100 gems published October 5 through November 4, 2026, showed no direct exploitation, though logs were not kept long enough to rule out earlier attempts. Hosted users need not act; self-hosted operators must deploy the fix, which rejects regexp-tagged fields with HTTP 422. Related Ruby regexp flaws are fixed in 4.0.10, 3.4.13, and 3.3.14.
- GHSA-7h7w-m82c-x2xg is scored CVSS 4.0 9.0; no CVE is assigned.
- CWE-502 is cited; an attacker needs only a publishing API key.
- Local code execution was shown on Ruby 4.0.9, not the live registry.
- Reviewers checked 29,100 gems published October 5 through November 4, 2026.
- The fix returns HTTP 422 for regexp-tagged gemspec fields.
- Related regexp fixes shipped in Ruby 4.0.10, 3.4.13, and 3.3.14.
Timeline
dated events in the reporting · oldest first- Oct 5, 2026Gem review window for published packages begins · Cyber Security News
- Nov 4, 2026Gem review window ends after 29,100 packages · Cyber Security News
- Nov 26, 2026GitHub advisory GHSA-7h7w-m82c-x2xg published · Cyber Security News
What each outlet adds
beyond the shared facts- Cyber Security NewsCites CWE-502 and says non-RCE builds could crash or exhaust memory.
- GBHackersNames Ruby Psych as the parser that diverged from the validator.
- The Hacker NewsAdds HTTP 422 behavior, incomplete logs, and fixed Ruby versions.
- Products
- RubyGems.org
Coverage
oldest first · one row per article · UTCRubyGems upload flaw could run code on registry servers
Publishers need only an API key; a review of 29,100 gems found no direct exploitation evidence.
RubyGems.org upload flaw enables authenticated remote code execution
Local tests on Ruby 4.0.9 showed RCE; no CVE is assigned and hosted users need not act.
RubyGems.org fixes critical metadata flaw that could run registry code
Any push-capable API key could inject a regexp via YAML; maintainers reached code execution locally, with no CVE assigned.