gbhackers.com·30 november 2026
Critical RubyGems Registry Vulnerability Enables Remote Code Execution via YAML Deserialization

CVSS v4 score
GemStuffer campaign
GHSA-7h7w-m82c-x2xg
memory corruption
metadata parser
OpenID Connect
psych parser
regular expression
remote code execution
Ruby 4.0.9
RubyGems.org
security advisory
self-hosted deployments
vulnerability
YAML deserialization
gbhackers.com
RubyGems.org disclosed a critical vulnerability in its package upload service that allowed authenticated accounts to execute code on the server. The flaw involved YAML deserialization, where metadata could become a regular expression, potentially leading to remote code execution. The issue, tracked as GHSA-7h7w-m82c-x2xg, has a CVSS v4 score of 9.0 and was patched in an update. Maintainers found no evidence of exploitation but warned that log retention limits could obscure earlier attempts.

