GitHub Enterprise Server
Pre-Receive Hook Path Collision Vulnerability in GitHub Enterprise Server Allowing Privilege Escalation
A privilege escalation vulnerability was identified in GitHub Enterprise Server that allowed an authenticated Enterprise admin to gain root SSH access to the appliance by exploiting a symlink escape in pre-receive hook environments. By crafting a malicious repository and environment, an attacker could replace system binaries during hook cleanup and execute a payload that adds their own SSH key to the root user’s authorized keys—thereby granting themselves root SSH access to the server. To exploit this vulnerability, the attacker needed to have enterprise admin privileges. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.19, and was fixed in versions 3.14.20, 3.15.15, 3.16.11, 3.17.8, 3.18.2. This vulnerability was reported via the GitHub Bug Bounty program.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 3.14, <= 3.14.19
- >= 3.15, <= 3.15.14
- >= 3.16, <= 3.16.10
- >= 3.17, <= 3.17.7
- >= 3.18, <= 3.18.1
Fixed in 3.14.20, 3.15.15, 3.16.11, 3.17.8, 3.18.2
Mitigation
Upgrade Enterprise Server to 3.14.20 or 3.15.15 or 3.16.11 or 3.17.8 or 3.18.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.