Privilege Escalation to Root SSH Access via Pre-Receive Hook Environment in GitHub Enterprise Server
An administrator on GitHub Enterprise Server could gain SSH root access via remote code execution, escalating from an administrative role to root.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 2 months
- Paid in 2 months
- Disclosed after 8 months
Summary by the program
An attacker with an Administrator role in GitHub Enterprise Server could gain SSH root access via remote code execution. This vulnerability affected GitHub Enterprise Server version 3.8.0 and above and was fixed in version 3.8.17, 3.9.12, 3.10.9, 3.11.7 and 3.12.1. This vulnerability was reported via the GitHub Bug Bounty program.
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
Impact
An administrator could escalate to root SSH access, gaining full control of the GitHub Enterprise Server instance.
What the attacker needed
Administrator role on GitHub Enterprise Server
The fix
It was fixed in versions 3.8.17, 3.9.12, 3.10.9, 3.11.7 and 3.12.1.
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.
GitHub Enterprise Server is a self-hosted version of GitHub. An administrator account could gain SSH root access via remote code execution, escalating to the highest level 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.