Technical impact
The vulnerability arises from improper path validation in GitHub Enterprise Server's handling of pre‑receive hook environments. A site administrator can supply a crafted environment that causes the server to resolve a path outside the intended repository and modify host files with root privileges. This capability can lead to the disclosure of private repository data, compromise of the appliance, and lateral movement within the host system.
Affected Systems
The issue affects GitHub Enterprise Server installations running any supported version prior to 3.23. The bug was addressed by patch releases 3.19.16, 3.20.12, 3.21.10, and 3.22.5. All earlier builds of these major releases remain vulnerable.
Risk and Exploitability
The CVSS score of 8.6 reflects a high severity. The EPSS score is < 1% and the vulnerability is not listed in CISA's KEV catalog, suggesting that known exploit data is limited. Exploitation requires the attacker to be a site administrator who can configure pre‑receive hook environments, so the primary vector is remote code execution via privileged Git operations. In practice this means an attacker who gains administrative access to the GitHub Enterprise instance can tamper with system files and compromise confidentiality, integrity, and availability of the appliance.