RubyGems.org Fixes Critical Upload Flaw That Could Enable RCE on Registry Servers
RubyGems.org patched a critical package upload vulnerability tied to how gem metadata is processed, which maintainers say could allow authenticated attackers to run code on registry servers.
RubyVulnerabilitiesKey points
- RubyGems.org disclosed a critical upload flaw related to gem metadata processing.
- Maintainers say an authenticated attacker could potentially execute code on registry servers.
- RCE was demonstrated in a local test using Ruby 4.0.9, with no evidence of exploitation on the public registry.
RubyGems.org has disclosed and addressed a critical flaw in its package registry. According to Cybersecurity News, the issue stems from how gem metadata is handled during package uploads, and could be abused by an authenticated attacker to run code on the registry's servers.
Maintainers reproduced remote code execution in a local test environment using Ruby 4.0.9, as reported by Cybersecurity News. However, they stated they found no direct evidence that the vulnerability was exploited against the public registry.
The disclosure was published through a GitHub security advisory. The original report should be consulted for further details on affected components and fixes, which are not fully restated here.
What to do
- Review the GitHub security advisory referenced in the report for affected versions and remediation guidance.
Original report
“Critical RubyGems Vulnerability Could Let Attackers Execute Code on Package Registry Servers”
RubyGems.org disclosed a critical package upload flaw that could let authenticated attackers execute code on registry servers by exploiting how gem metadata is processed. Maintainers demonstrated remote code execution in a local test using Ruby 4.0.9. However, they found no direct evidence that attackers exploited the flaw on the public registry. The GitHub security advisory, […]
Also reported by
- GBHackers: Critical RubyGems Registry Vulnerability Enables Remote Code Execution via YAML Deserialization
- The Hacker News: Critical RubyGems Flaw Could Have Let Any Gem Publisher Run Code on the Registry
- Debian Issues Rails Security Update Covering 18 CVEs
- MongoDB Ruby Driver Vulnerability Enables Unauthenticated Data Manipulation
- MongoDB Ruby Driver Logic Flaw Enables Unauthorized Data Access
- MongoDB Ruby Driver Type Confusion Vulnerability in Extended JSON Parsing
- MongoDB Ruby Driver Vulnerability Allows Cleartext Storage of Sensitive Data