Critical RubyGems Flaw Could Have Let Any Gem Publisher Run Code on the Registry
RubyGems.org fixed a critical flaw that allowed an account with a push-capable API key to place an attacker-controlled regular expression in gem metadata. In local testing, maintainers chained the flaw with a memory corruption bug in Ruby’s regular-expression compiler and achieved remote code execution. A review of production telemetry and 29,100 gems found no direct evidence of exploitation, but earlier attempts cannot be ruled out because logs and upload payloads were not retained long enough.
CERT24