Open Source 2013-01-29 · 3 days ·Backdoor, Remote Code Execution

gem-wrappers backdoor reached RubyGems.org

During a platform-level compromise of RubyGems.org (exploiting server vulnerabilities), attackers gained root filesystem access and replaced the legitimate 'gem-wrappers' gem file (v1.1.0) with a malicious version.

Story

gem-wrappers was the package-level artifact exposed by the 2013 RubyGems.org compromise. The attack was not a maintainer deciding to publish hostile code; it was a failure at the hosting platform that distributed gems to the Ruby ecosystem.

Public reporting tied the intrusion to a RubyGems.org server vulnerability that let attacker-controlled gem metadata execute on the service. Once the platform was compromised, the legitimate gem-wrappers 1.1.0 gem file was replaced with a malicious archive.

That made the trust path simple and dangerous. Users asking RubyGems.org for gem-wrappers 1.1.0 could receive the poisoned package from the canonical registry. The source repository was less important than the archive served by the package host.

RubyGems.org took the service offline, audited gems, and restored trust in the distribution platform. This record keeps the package artifact separate from the platform incident because the affected gem version and archive hash are concrete.

Affected Artifacts

Incident Context

Motive
Unauthorized Access Control
Attribution
Person
Cause
Compromised Infrastructure
Transitive
No
Actor
Individual Hacker

External References

Source record: oss/attacks/gem-wrappers/meta.yaml