Skip to main content
Mallory
← Back to News
internet-facing-service-vulnerabilitywidely-deployed-product-advisory

GitHub Enterprise RCE Chain Exploited SSRF, Memcached, and Ruby Deserialization

Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Feb 1, 2017

GitHub Enterprise RCE Chain Exploited SSRF, Memcached, and Ruby Deserialization

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.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

3 events · Jan 23, 2017 – Feb 1, 2017
  1. Feb 1, 201710y ago

    GitHub confirms fix and awards researcher bounty

    GitHub confirmed the vulnerability chain was fixed and awarded the researcher a $7,500 bounty plus a $5,000 best-report bonus.

    How I Chained 4 vulnerabilities on GitHub Enterprise, From SSRF Execution Chain to RCE! | Orange Tsai
  2. Jan 31, 201710y ago

    GitHub releases Enterprise 2.8.7 to address RCE chain

    GitHub released GitHub Enterprise 2.8.7 to remediate the reported exploit chain, including protections against the SSRF and internal-service access paths used in the attack.

    How I Chained 4 vulnerabilities on GitHub Enterprise, From SSRF Execution Chain to RCE! | Orange Tsai
  3. Jan 23, 201710y ago

    Researcher reports GitHub Enterprise RCE chain via HackerOne

    A researcher submitted HackerOne report 200542 to GitHub describing a four-vulnerability chain that could lead from WebHook SSRF to remote code execution in GitHub Enterprise versions before 2.8.7.

    How I Chained 4 vulnerabilities on GitHub Enterprise, From SSRF Execution Chain to RCE! | Orange Tsai
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Organizations

1 linked
GitHub
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.