Skip to main content

GitHub Enterprise Server CVE-2026-112740

| EUVDEUVD-2026-128358 HIGH
OS Command Injection (CWE-78)
2026-11-18 GitHub_P GHSA-vgmg-xrw2-8659
7.4
CVSS 4.0 · Vendor: GitHub_P
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as site administrator
  2. Delivery
    Configure custom pre-receive hook environment
  3. Exploit
    Supply crafted environment download URL
  4. Execution
    Injection processed on peer Git node
  5. Impact
    Execute 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 2.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Enterprise Server 3.20.0 <3.20.*
Enterprise Server 3.21.0 <3.21.*
Enterprise Server 3.22.0 <3.22.*
Enterprise Server 3.19.0 <3.19.*

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

Vendor (GitHub_P) PRIMARY 7.4 HIGH
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
vuln.today AI 5.9 MEDIUM

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).

3.1 AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_P).

CVSS VectorVendor: GitHub_P

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 18, 2026 - 02:01 EUVD
CVE Published
Nov 18, 2026 - 00:57 cve.org
HIGH 7.4

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
2.0%
Top 19% exploitable
Prevalence
High
widely deployed enterprise Git platform, though clustered peer-node config is narrower
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 2.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

More in Github

View all
CVE-2026-1699 CRITICAL POC
10.0 Jan 30

Supply chain vulnerability in Eclipse Theia GitHub Actions workflow. The preview.yml workflow uses pull_request_target w

CVE-2026-27941 CRITICAL POC
9.9 Feb 26

Supply chain attack vector in OpenLIT GitHub Actions workflows. The pull_request_target trigger with checkout enables ma

CVE-2026-22869 CRITICAL POC
9.8 Jan 13

Eigent multi-agent workflow CI pipeline (ci.yml) uses pull_request_target with checkout of untrusted PR code, enabling a

CVE-2025-60021 CRITICAL POC
9.8 Jan 16

Apache bRPC versions before 1.15.0 contain a remote command injection vulnerability in the heap profiler built-in servic

CVE-2024-0200 CRITICAL POC
9.8 Jan 16

An unsafe reflection vulnerability was identified in GitHub Enterprise Server that could lead to reflection injection. R

CVE-2022-24724 CRITICAL POC
9.8 Mar 03

cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Rated critical severity (CVSS 9.

CVE-2024-9487 CRITICAL POC
9.5 Oct 10

An improper verification of cryptographic signature vulnerability was identified in GitHub Enterprise Server that allowe

CVE-2026-28215 CRITICAL POC
9.1 Feb 26

Unauthenticated infrastructure overwrite in Hoppscotch API development ecosystem before 2026.2.0. Attackers can overwrit

CVE-2018-1000600 HIGH POC
8.8 Jun 26

A exposure of sensitive information vulnerability exists in Jenkins GitHub Plugin 1.29.1 and earlier in GitHubTokenCrede

CVE-2026-30920 HIGH POC
8.6 Mar 10

OneUptime versions prior to 10.0.19 allow unauthenticated attackers to hijack GitHub App integrations across projects by

CVE-2026-25221 HIGH POC
8.1 Feb 02

PolarLearn versions 0-PRERELEASE-15 and earlier lack proper state parameter validation in OAuth 2.0 authentication, enab

CVE-2026-23644 HIGH POC
7.5 Jan 18

Path traversal in esm.sh CDN prior to version 0.0.0-20260116051925-c62ab83c589e allows unauthenticated remote attackers

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy