CVE-2026-112740 in GitHub Enterprise Server could cross the pre-receive hook boundary
CVE-2026-112740 could let a GitHub Enterprise Server site administrator execute commands as the host git user on a peer node in certain clustered deployments using custom pre-receive environments.
CVE-2026-112740 affects GitHub Enterprise Server deployments that use custom pre-receive hook environments in a cluster with at least one peer Git server node. A crafted download URL for the environment can provide the injection point.
According to the advisory, exploitation can move from an existing site administrator role to command execution as the host git user on a peer Git server node, outside the pre-receive hook sandbox. The issue is not described as a general unauthenticated request path, and single-node appliances without custom pre-receive environments do not match the stated conditions.
The vulnerability affects versions before 3.23. Fixed releases are 3.22.5, 3.21.10, 3.20.12 and 3.19.16. Administrators of affected clustered instances should review deployment topology, custom environment sources, administrative activity and peer-node process history; patching removes the vulnerable code path but does not establish whether prior exploitation occurred.