CVE-2026-112740: OS command injection in GitHub Enterprise Server allowed command execution as the host git user on peer cluster nodes
A command injection vulnerability was identified in GitHub Enterprise Server that allowed an authenticated site administrator to execute arbitrary commands as the host git user on peer Git server nodes outside the pre-receive hook sandbox by supplying a crafted pre-receive environment download URL. Exploitation required a clustered deployment using custom pre-receive hook environments and at least one peer Git server node. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.23 and was fixed in versions 3.22.5, 3.21.10, 3.20.12, and 3.19.16. This vulnerability was reported via the GitHub Bug Bounty program.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.22.5 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.21.10 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.20.12 - Upgrade
Upgrade
GitHub Enterprise Serverto a version that resolves this vulnerability.Fixed in 3.19.16
Event History
Frequently Asked Questions
Which deployments are exposed to exploitation?
Exploitation requires a clustered GitHub Enterprise Server deployment that uses custom pre-receive hook environments and has at least one peer Git server node. Deployments missing any of these conditions are not described as exploitable.
What level of access does an attacker need?
The attacker must be an authenticated site administrator. They exploit the issue by supplying a crafted pre-receive environment download URL.
What access does successful exploitation provide?
Successful exploitation allows arbitrary command execution as the host git user on peer Git server nodes, outside the pre-receive hook sandbox.
Which versions contain the fix?
The issue affects versions prior to 3.23. Fixes are available in 3.22.5, 3.21.10, 3.20.12, and 3.19.16.