GitHub Enterprise Server
Server-Side Request Forgery vulnerability in GitHub Enterprise Server allowed remote code execution via network access from pre-receive hooks to internal services
A Server-Side Request Forgery (SSRF) vulnerability was identified in GitHub Enterprise Server that allowed remote code execution on the instance. Insufficient network isolation allowed malicious pre-receive hook code to impersonate an internal service and redirect trusted internal requests to a privileged service, leading to elevated code execution. Exploitation required pre-receive hook networking to be enabled and either site administrator privileges or write access to a repository containing a configured pre-receive hook. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.17.20, 3.18.14, 3.19.11, 3.20.7, and 3.21.5. 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.17.0, <= 3.17.19
- >= 3.18.0, <= 3.18.13
- >= 3.19.0, <= 3.19.10
- >= 3.20.0, <= 3.20.6
- >= 3.21.0, <= 3.21.4
Fixed in 3.17.20, 3.18.14, 3.19.11, 3.20.7, 3.21.5, 3.22.0
Mitigation
Upgrade Enterprise Server to 3.17.20 or 3.18.14 or 3.19.11 or 3.20.7 or 3.21.5 or 3.22.0 or later.
References
- Release notes docs.github.com/en/enterprise-server@3.17/admin/rel…
- Release notes docs.github.com/en/enterprise-server@3.18/admin/rel…
- Release notes docs.github.com/en/enterprise-server@3.19/admin/rel…
2 more
- Release notes docs.github.com/en/enterprise-server@3.20/admin/rel…
- Release notes docs.github.com/en/enterprise-server@3.21/admin/rel…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.