GitHub Enterprise RCE Chain Exploited SSRF, Memcached, and Ruby Deserialization
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Feb 1, 2017

A researcher disclosed a four-vulnerability chain that enabled unauthenticated remote code execution on GitHub Enterprise versions before 2.8.7. The attack began with a WebHook server-side request forgery (SSRF) bypass using an unusual IP-address representation to evade Faraday restrictions, then used a second SSRF flaw to reach the internal Graphite service.
A CRLF injection in Python's HTTPConnection allowed protocol smuggling to internal Memcached, where an attacker could plant a malicious Ruby Marshal object in cache. When GitHub Enterprise deserialized the poisoned object, it executed attacker-controlled commands. GitHub validated the report and released version 2.8.7, adding SSRF and internal network-access protections.


