cyberpress.org·30 november 2026
Critical Flaw in RubyGems Could Allow Hackers to Run Arbitrary Code on Package Registry Servers

arbitrary code execution
checksums.yaml
code execution
denial of service
gem-push validator
memory corruption
regexp compilation
Ruby 4.0.9
Ruby classes
RubyGems.org
schema validation
security vulnerability
YAML aliases
YAML deserialisation
cyberpress.org
A critical flaw in the RubyGems.org gem-push validator allowed authenticated users to run arbitrary code on the registry’s upload servers. The bug stemmed from unsafe YAML deserialisation before gem ownership checks. RubyGems maintainers fixed the issue on the hosted service, and gem users need no action. The vulnerability could also enable denial of service attacks. Self-hosted RubyGems.org deployments should update and review logs for suspicious activity.
