Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as site administrator
-
DeliveryConfigure custom pre-receive hook environment
-
ExploitSupply crafted environment download URL
-
ExecutionInjection processed on peer Git node
-
ImpactExecute commands as host git user outside sandbox
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) an authenticated site administrator account (PR:H); (2) a clustered GitHub Enterprise Server deployment with at least one peer Git server node; (3) the use of custom pre-receive hook environments; and (4) the ability to supply a crafted pre-receive environment download URL. These conditions sharply limit real-world exposure: single-node or non-clustered GHES deployments, and clusters not using custom pre-receive hook environments, are not affected. The attacker must already hold the highest administrative role, so this is primarily a sandbox-escape / privilege-boundary bypass (site-admin to host git user on peer nodes) rather than an entry-point vulnerability. The exact injection trigger within the download URL is not described in the available sources. |
| Impact | This is a genuine but conditional, lower-urgency issue rather than a mass-exploitation threat. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:H) scores 7.4 (High), but the two most risk-limiting metrics are PR:H and AT:P: exploitation requires an already-authenticated site administrator AND a specific environmental precondition (a clustered deployment with custom pre-receive hook environments and at least one peer Git server node). An attacker who is already a site admin is highly privileged, so the practical escalation here is from site-admin to arbitrary command execution as the host git user on peer nodes, outside the pre-receive sandbox. No EPSS score, SSVC automatable/technical-impact values, KEV entry, or PoC were supplied in the input; the only references are vendor release notes. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious-but-not-actively-exploited flaw. Exploitation status: no public exploit identified at time of analysis. KEV status is not listed, so active exploitation is not confirmed. Note the input provides only a CVSS 4.0 vector (no 3.1 vector, no EPSS), so some decision signals are missing and the priority rests mainly on severity plus the non-emergency decision label. |
| Exploit ScenarioDerived | An authenticated site administrator on a clustered GitHub Enterprise Server instance configures a custom pre-receive hook environment and supplies a crafted environment download URL. When the appliance fetches and processes that URL on a peer Git server node, injected shell metacharacters cause arbitrary commands to run as the host git user outside the pre-receive hook sandbox. No public exploit code was identified in the provided sources; the trigger mechanism beyond 'crafted pre-receive environment download URL' is not detailed in the available data. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
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.
RemediationAI
Vendor-released patch: upgrade to GitHub Enterprise Server 3.22.5, 3.21.10, 3.20.12, or 3.19.16; release notes are at https://docs.github.com/en/enterprise-server@3.22/admin/release-notes#3.22.5, https://docs.github.com/en/enterprise-server@3.21/admin/release-notes#3.21.10, https://docs.github.com/en/enterprise-server@3.20/admin/release-notes#3.20.12, and https://docs.github.com/en/enterprise-server@3.19/admin/release-notes#3.19.16. Until upgrading, remove or disable custom pre-receive hook environments on clustered deployments, because that is a stated precondition for exploitation; the trade-off is loss of custom pre-receive hook functionality. Single-node deployments and clusters without custom pre-receive hook environments are not affected by the stated exploit preconditions. Because the attacker must already hold site administrator privileges, review and minimize site administrator accounts to essential personnel; this reduces exposure but does not correct the underlying flaw in affected clusters.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
GitHub Enterprise Server is a self-hosted Git platform; in clustered configurations, pre-receive hook environments can be downloaded and run around Git receive operations, with execution normally constrained by a sandbox. CWE-78 (OS command injection) here arises because a crafted pre-receive environment download URL is not sufficiently neutralized before being used in a command context, allowing an authenticated site administrator to execute commands as the host git user on peer Git server nodes outside that sandbox. The CPE cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:* covers the affected product family, and the supplied assessment rates it CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N; the exact injection trigger within the download URL is not described in the available sources. Exposure is conditional on a clustered deployment with at least one peer Git server node and custom pre-receive hook environments, so single-node deployments and clusters without custom pre-receive hook environments are not affected.
Know when Github gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Requires site-admin privileges (PR:H) and a specific clustered custom-hook configuration making it conditional (AC:H); command execution gives high confidentiality and integrity impact, with no availability impact (A:N).
Primary rating from Vendor (GitHub_P).
CVSS VectorVendor: GitHub_P
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-112740 is a high-severity command injection vulnerability in GitHub Enterprise Server (GHES) that allows an authenticated site administrator to execute arbitrary commands on peer Git server nodes, potentially leading to lateral movement and compromise of the source code management infrastructure. Organizations running clustered GHES deployments with custom pre-receive hook environments are at risk, and while no public exploit has been identified, the availability of a patch (version 3.22.5 and later) makes immediate remediation critical. Leadership should prioritize patching to prevent insider threats or compromised admin accounts from escalating privileges and accessing sensitive repositories.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Related Vulnerabilities in GitHub Enterprise Server Authorization and Injection Flaws
View all 8Supply chain vulnerability in Eclipse Theia GitHub Actions workflow. The preview.yml workflow uses pull_request_target w
Supply chain attack vector in OpenLIT GitHub Actions workflows. The pull_request_target trigger with checkout enables ma
Eigent multi-agent workflow CI pipeline (ci.yml) uses pull_request_target with checkout of untrusted PR code, enabling a
Apache bRPC versions before 1.15.0 contain a remote command injection vulnerability in the heap profiler built-in servic
An unsafe reflection vulnerability was identified in GitHub Enterprise Server that could lead to reflection injection. R
cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Rated critical severity (CVSS 9.
An improper verification of cryptographic signature vulnerability was identified in GitHub Enterprise Server that allowe
Unauthenticated infrastructure overwrite in Hoppscotch API development ecosystem before 2026.2.0. Attackers can overwrit
A exposure of sensitive information vulnerability exists in Jenkins GitHub Plugin 1.29.1 and earlier in GitHubTokenCrede
OneUptime versions prior to 10.0.19 allow unauthenticated attackers to hijack GitHub App integrations across projects by
PolarLearn versions 0-PRERELEASE-15 and earlier lack proper state parameter validation in OAuth 2.0 authentication, enab
Path traversal in esm.sh CDN prior to version 0.0.0-20260116051925-c62ab83c589e allows unauthenticated remote attackers
EUVD-2026-128358
GHSA-vgmg-xrw2-8659
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB