Skip to content
RCE Disclosed report Advanced CVE-2022-23734

[Git Gud] GitHub.com Svnbridge memcached deserialization vulnerability chain leading to Remote Code Execution

A deserialization flaw in GitHub Enterprise Server's SVNBridge could allow remote code execution if an attacker first uses server-side request forgery to control the data being deserialized. The vulnerability affected all versions before v3.6 and was fixed in several patch releases.

Alex Chapman Follow with archangel and jon_bottarini

Originally disclosed on HackerOne

  • Triaged in 9 days
  • Fixed in 3 months
  • Paid in 9 days
  • Disclosed after 5 months

Summary by the program

A deserialization of untrusted data vulnerability was identified in GitHub Enterprise Server that could potentially lead to remote code execution on the SVNBridge. To exploit this vulnerability, an attacker would need to gain access via a server-side request forgery (SSRF) that would let an attacker control the data being deserialized. This vulnerability affected all versions of GitHub Enterprise Server prior to v3.6 and was fixed in versions 3.5.3, 3.4.6, 3.3.11, and 3.2.16. This vulnerability was reported via the GitHub Bug Bounty program.

The original report as published on HackerOne, by ajxchapman. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the SVNBridge deserialized untrusted data without proper validation, and an SSRF allowed an attacker to supply that data.

Impact

An attacker could potentially achieve remote code execution on the SVNBridge, but only after first gaining SSRF access to control the deserialized data.

What the attacker needed

GitHub Enterprise Server before v3.6; SSRF access to control deserialized data

The fix

It was fixed in versions 3.5.3, 3.4.6, 3.3.11, and 3.2.16.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Deserialization is when a program turns stored data back into objects; if an attacker can control that data, they may make the program run harmful code. Here, the attacker first needed a way to make the server fetch data from a location they control, called server-side request forgery, so they could feed in malicious data. This could let them run their own code on the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Alex Chapman

View all

12 more disclosed reports, best first.

More from GitHub

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.