Skip to main content
Menu
Early warnings

RubyGems.org fixes critical flaw that could have let gem publishers run code on registry

RubyGems.org fixed a critical flaw, scored 9.0 on CVSS and tracked as GHSA-7h7w-m82c-x2xg, that could let any account with a push-capable API key reach code execution in the registry's upload path in a local test.

SZB-da98080f7fFirst seen Summary written by a modelPending CVE

Sources2Corroborated

Summary

RubyGems.org fixed a critical flaw, scored 9.0 on CVSS and tracked as GHSA-7h7w-m82c-x2xg, that could let any account with a push-capable API key reach code execution in the registry's upload path in a local test. The registry's advisory found no direct evidence of exploitation in telemetry and 29,100 gems, but log gaps mean earlier attempts cannot be ruled out.

What to do

  1. Update self-hosted RubyGems.org installations to a commit containing the fix.

  2. Update Ruby to 4.0.10, 3.4.13 or 3.3.14 to receive the separate Ruby runtime fixes.

  3. Review the RubyGems.org security advisory GHSA-7h7w-m82c-x2xg for details.

Timeline

  1. Made public by Mastodon
  2. First seen by cve.now

Evidence 2

Questions about RubyGems.org fixes critical flaw that could have let gem publishers run code on registry

Has RubyGems.org confirmed it?

Mastodon and The Hacker News report a possible compromise. None of the sources says it happened. No statement from RubyGems.org has reached cve.now yet.

Source: Mastodon, The Hacker News

What should RubyGems.org and Ruby users do?

Update self-hosted RubyGems.org installations to a commit containing the fix. Update Ruby to 4.0.10, 3.4.13 or 3.3.14 to receive the separate Ruby runtime fixes. Review the RubyGems.org security advisory GHSA-7h7w-m82c-x2xg for details.

No corrections so far. Something wrong on this page? Report an error.