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'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 narrow. The advisory says exploitation required a clustered deployment that used custom pre-receive hook environments and included at least one peer Git server node. A crafted pre-receive environment download URL supplied the injection point. This was not a general unauthenticated request path. The boundary that failed Pre-receive environments are part of the hook execution system. Administrators can point the appliance at environment content, and clustered deployments replicate or distribute Git-related work across nodes. The advisory places the defect in the handling of a download URL for that environment. The important distinction is where the command ran. The advisory says the resulting commands ran as the host git user on a peer Git server node, outside the pre-receive hook sandbox. That changes the incident scope. A team that only reviews the node where the administrator made the change may miss evidence on a peer. Site administrator access is still privileged access. The vulnerability lowers the trust required inside that role and crosses a process isolation boundary that customers reasonably rely on. The affected deployment profile also matters. A single-node appliance without custom pre-receive environments does not match the stated exploitation conditions. Affected versions and response The vulnerability affected GitHub Enterprise Server versions before 3.23. Fixed releases are 3.22.5, 3.21.10, 3.20.12 and 3.19.16. Administrators should match the actual patch level rather than infer safety from the major release. For an affected clustered instance, collect the deployment topology, custom environment sources, repository administrative activity and peer-node process history before changing the system. Preserve relevant logs outside the appliance. Review accounts with site administrator rights and any recent additions to that group. The patch removes the vulnerable code path. It does not determine whether someone already used it. If the required conditions were present and administrative activity is unexplained, treat the peer node as potentially compromised until evidence supports another conclusion. Rotate credentials reachable by the git account from that node and inspect scheduled jobs, repository hooks and SSH trust material. Controls after patching Restrict site administrator access to named operators with a documented break-glass process. Separate custom hook environment management from routine repository administration where the platform permits it. Review peer-node network access and log forwarding so a local sandbox escape can still be reconstructed centrally. The pre-receive hook sandbox should remain a defense layer, not the only boundary around repository execution. Host-level hardening, least privilege for the git account and peer-node monitoring still matter after this CVE is fixed. References GitHub Advisory Database: CVE-2026-112740 GitHub Enterprise Server 3.19.16 release notes NVD: CVE-2026-112740

Original Source

Read the full article at Dev →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.