CVE-2026-112740

OS command injection in GitHub Enterprise Server allowed command execution as the host git user on peer cluster nodes

Published Nov 18, 2026 CVSS 4.0 · 7.4 High EPSS 2.0% KEV · Not listed
Description
A command injection vulnerability was identified in GitHub Enterprise Server that allowed an authenticated site administrator to execute arbitrary commands as the host git user on peer Git server nodes outside the pre-receive hook sandbox by supplying a crafted pre-receive environment download URL. Exploitation required a clustered deployment using custom pre-receive hook environments and at least one peer Git server node. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.23 and was fixed in versions 3.22.5, 3.21.10, 3.20.12, and 3.19.16. This vulnerability was reported via the GitHub Bug Bounty program.

Analysis

AI-generated

Technical impact

A pre‑receive hook configuration flaw allows an authenticated site administrator to supply a crafted pre‑receive environment download URL that is not sandboxed. The input is executed by the host git user process, yielding remote code execution on peer Git server nodes.

Affected Systems

GitHub Enterprise Server installations 3.19.x, 3.20.x, 3.21.x, and 3.22.x that are deployed in a clustered configuration and use custom pre‑receive hook environments. All such versions prior to 3.23 are vulnerable; the issue is addressed in 3.22.5, 3.21.10, 3.20.12, and 3.19.16.

Risk and Exploitability

The CVSS score of 7.4 indicates high severity. The exploit requires an authenticated site administrator account and a clustered deployment with custom pre‑receive hook environments, so the threat is primarily to internal attackers or those who have compromised an admin account. EPSS is 2%, indicating a low but nonzero probability that the vulnerability is being exploited in the wild. The vulnerability is not listed in the CISA KEV catalog, but the scope and required privileges suggest a significant risk if an attacker gains admin access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official security update for GitHub Enterprise Server (upgrade to 3.22.5, 3.21.10, 3.20.12, or 3.19.16 as appropriate) to remove the command injection flaw.
  • If an upgrade cannot be performed immediately, restrict or disable the ability to configure custom pre‑receive hook environment download URLs and enforce HTTPS with trusted certificates only.
  • Eliminate or isolate any peer Git server nodes from the deployment until the patch is applied to prevent cross‑node command execution.

Generated by OpenCVE AI on November 18, 2026 at 23:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Github
Github enterprise Server
Vendors & Products Github
Github enterprise Server
Type Values Removed Values Added
Description A command injection vulnerability was identified in GitHub Enterprise Server that allowed an authenticated site administrator to execute arbitrary commands as the host git user on peer Git server nodes outside the pre-receive hook sandbox by supplying a crafted pre-receive environment download URL. Exploitation required a clustered deployment using custom pre-receive hook environments and at least one peer Git server node. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.23 and was fixed in versions 3.22.5, 3.21.10, 3.20.12, and 3.19.16. This vulnerability was reported via the GitHub Bug Bounty program.
Title OS command injection in GitHub Enterprise Server allowed command execution as the host git user on peer cluster nodes
Weaknesses CWE-78
References
Metrics cvssV4_0

{'score': 7.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_P
Published
Updated
Nov 18, 2026, 5:36 PM
Reserved
Oct 19, 2026, 6:01 PM
Status
Received
Published
Nov 18, 2026, 1:17 AM
Modified
Nov 18, 2026, 6:17 PM