Skip to content
NewA calmer, faster ZeroHour
StoryVulnerabilityhigh

RubyGems.org patches critical upload flaw; no live exploitation found

3 sources · 3 articlesFirst reported Updated ()1
What's new

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.

Merged summary · x-ai/grok-4.7 · rewritten as coverage arrivesSummaries by Vani AI

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.

Key facts
  • 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.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

Timeline

dated events in the reporting · oldest first
  1. Oct 5, 2026Gem review window for published packages begins · Cyber Security News
  2. Nov 4, 2026Gem review window ends after 29,100 packages · Cyber Security News
  3. 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.

Coverage

oldest first · one row per article · UTC
  1. · 22h ago Cyber Security NewsFirst report

    RubyGems 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.

  2. · 22h ago GBHackers

    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.

  3. · 20h ago The Hacker News

    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.