GitHub Enterprise Server's Pre-Receive Hook Boundary Broke Under a Crafted Download URL
GitHub Enterprise Server's Pre-Receive Hook Boundary Broke Under a Crafted Download URL GitHub Enterprise Server administrators already hold broad control over a repository appliance. CVE-2026-112740 matters because the attacker could move from that administrative role into command execution as the host git user on a peer Git server node, outside the pre-receive hook sandbox. The condition is…
GitHub Enterprise Server administrators have extensive control over a repository appliance. However, CVE-2026-112740 presents a significant vulnerability that could allow an attacker to escalate privileges from the administrative role to command execution as the host git user on a peer Git server node. This breach occurs outside the pre-receive hook sandbox, thanks to a crafted download URL in a custom pre-receive environment.
The exploitation requires a clustered deployment using custom pre-receive hook environments, including at least one peer Git server node. The bug lies in the handling of the environment's download URL, where commands execute as the host git user on the peer node, bypassing the pre-receive hook sandbox. This discovery impacts system trust, as it transcends the process isolation boundaries customers depend on.
Affected versions include those before 3.23. The fixes for this vulnerability are 3.22.5, 3.21.10, 3.20.12, and 3.19.16. To mitigate the risk, administrators must gather deployment topology data, custom environment sources, repository administrative activity, and peer-node process history. They should also inspect accounts with site administrator rights, rotate relevant credentials, and review scheduled jobs, repository hooks, and SSH trust material.
Post-patch, it's crucial to maintain restrictive site administrator access, isolate custom hook environment management, monitor peer-node network access, and ensure host-level hardening and least privilege for the git account.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to