cybersecuritynews.com·30 november 2026

Critical RubyGems Vulnerability Could Let Attackers Execute Code on Package Registry Servers

Image for the article: Critical RubyGems Vulnerability Could Let Attackers Execute Code on Package Registry Servers
Image via cybersecuritynews.com

RubyGems.org disclosed a critical package upload flaw that could allow authenticated attackers to execute code on registry servers by exploiting gem metadata processing. The flaw, demonstrated in a local test using Ruby 4.0.9, has a CVSS 4.0 score of 9.0 but no known CVE identifier. Maintainers found no direct evidence of exploitation on the public registry. The fix rejects regular expressions in gemspec fields and limits Ruby object creation by the parser. Teams running self-hosted RubyGems.org deployments should update to a code revision containing the fix.