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.
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
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.
Timeline
- Made public by Mastodon
- First seen by cve.now
Evidence 2
- Mastodon
“RubyGems.org patched a critical CVSS 9.0 RubyGems.org RCE vulnerability caused by RubyGems YAML deserialization in gem pushes.”
- The Hacker News
“RubyGems.org , the central registry for the Ruby community's gems, has fixed a critical flaw that let any account with a push-capable API key feed an attacker-controlled regular expression into the metadata of a gem upload.”
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.