GitHub Enterprise Server Authorization and Injection Flaws
2026-11-18
GitHub Enterprise Server releases prior to 3.23 allow a site administrator to abuse improper path validation in a crafted pre-receive hook environment, enabling modification of files on the appliance host with root privileges and disclosure of private repository data. The flaw is a CWE-59 link-resolution/path-validation issue fixed in 3.19.16, 3.20.12, 3.21.10, and 3.22.5. Exploitation requires high privileges (site administrator, PR:H in the CVSS vector); no public exploit was identified at time of analysis.
An SSH certificate authentication bypass in GitHub Enterprise Server lets an authenticated organization member who holds a valid certificate from a trusted SSH certificate authority read and modify another user's private repositories within that CA's scope. Exploitation requires a specific combined configuration - built-in authentication enabled, a trusted SSH CA configured, existing organization membership, and a validly issued attacker certificate - so instances using external authentication or without a trusted SSH CA are not exposed. All GHES releases prior to 3.23 are affected and the flaw is fixed in 3.19.16, 3.20.12, 3.21.10 and 3.22.5; no public exploit code was identified at time of analysis, and the issue was reported through the GitHub Bug Bounty program.
Stored cross-site scripting in GitHub Enterprise Server (supported releases prior to 3.23) lets an organization member who can manage custom-property definitions plant attacker-controlled HTML inside a single-select custom-property option, which is later rendered to a second privileged definition manager; the stored payload can add an attacker-controlled SSH authentication key to another member's personal account. Triggering it also requires that second definition manager to attempt removal of the poisoned option while it is still in use and to save the definition under a valid sudo session, and any repository access gained through the injected key still depends on the victim's permissions and independent authorization controls. GitHub fixed the issue in 3.19.16, 3.20.12, 3.21.10 and 3.22.5; no public exploit code or confirmed active exploitation was identified at time of analysis, and the vendor's 8.3 CVSS 4.0 base score is moderated in practice by the chain of insider-only preconditions.
Server-side request forgery in GitHub Enterprise Server (all versions prior to 3.23) lets an authenticated user with repository write access push requests into internal services through the Slack webhook validity-check path, with the potential to escalate to remote code execution on the appliance. Exploitation is gated on a non-default configuration: Secret Protection must be enabled with secret scanning and validity checks for partner patterns turned on, and the attacker must already hold write access to a repository - an appliance without that feature combination is not exposed. No public exploit code or PoC has been identified at time of analysis, the issue is not in CISA KEV, and it is rated a moderate-priority authenticated flaw rather than a mass-exploitation emergency; fixes ship in 3.22.5, 3.21.10 and 3.20.12.
Command injection in GitHub Enterprise Server allows an authenticated site administrator in a clustered deployment that uses custom pre-receive hook environments to run arbitrary commands as the host git user on peer Git server nodes, escaping the pre-receive hook sandbox. The flaw affects all versions prior to 3.23 and is fixed in 3.22.5, 3.21.10, 3.20.12, and 3.19.16; exploitation also requires a crafted pre-receive environment download URL and at least one peer Git server node. No public exploit identified at time of analysis, and the supplied priority label is this_week.
GitHub Enterprise Server releases before 3.23 allow an authenticated user with high privileges to manage an enterprise-owned GitHub App and generate its private keys without enterprise membership when the user's numeric user ID matches the enterprise's numeric ID. The broken ownership check compares numeric IDs without validating the owner's account type, so a session for the colliding account plus an enterprise-owned App is required; on standard fresh installations the documented collision is the non-loginable built-in ghost account, while the reported GHES reproduction used site administrator impersonation. Fixed releases are 3.19.16, 3.20.12, 3.21.10, and 3.22.5; no public exploit was identified at time of analysis.
GitHub Enterprise Server 3.21 and 3.22 series before 3.21.10 and 3.22.5 expose review-thread data across repository boundaries: an authenticated user who can read any repository and pull request can supply arbitrary review-thread identifiers to the thread-preview endpoint and receive data belonging to private repositories they are not authorized to access. Because the endpoint resolves supplied identifiers without restricting them to the authorized pull request, the disclosed data includes private file paths and, where positioning and diff data are present, source-code excerpts, commit identifiers and line metadata - with no victim interaction required (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N). Impact is confidentiality-only; exploitation requires a valid account, an accessible repository/PR as request context, and possession or enumeration of target thread identifiers. No public exploit code has been identified at time of analysis, and the issue was reported through the GitHub Bug Bounty program rather than observed in active exploitation.
GitHub Enterprise Server before 3.23 mishandles carriage-return/line-feed (CRLF) sequences during pull request conflict resolution, letting a user who already has write access to a repository bypass branch protection and modify branches or tags that should have been protected. Exploitation is not anonymous: the CVSS vector requires low privileges (PR:L), so the actor must be a valid, authenticated account with push rights to the target repository, and the outcome is limited to integrity of branch and tag state with no confidentiality or availability impact. There is no confirmed active exploitation (not in CISA KEV) and no public exploit identified at time of analysis, which - combined with the write-access prerequisite and the integrity-only effect - makes this a moderate, low-urgency authorization flaw rather than a high-impact priority.