Command injection in GitHub Enterprise Server runs commands on peers
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
GitHub Enterprise Server versions prior to 3.23 are affected. A command injection flaw (CWE-78) lets an authenticated site administrator run 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 requires a clustered deployment that uses custom pre-receive hook environments and at least one peer Git server node.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| GitHub | Enterprise Server | 3.19.0 and later; 3.20.0 and later; 3.21.0 and later; 3.22.0 and later | — | No fix listed | CNA |
- Enterprise Server VendorGitHub Affected 3.19.0 and later; 3.20.0 and later; 3.21.0 and later; 3.22.0 and later Fixed in — No fix listed CNA
Remediation
Upgrade GitHub Enterprise Server to version 3.22.5, 3.21.10, 3.20.12 or 3.19.16, which fix this flaw.
Written with Claude Haiku 5.5 from the sources below · 2026-11-18
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
GitHub Enterprise Server 3.19.*, 3.20.* and 2 more versions
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2026-93649 Improper link resolution in GitHub Enterprise ServerPriority MEDIUM 40
- TI-2026-93672 Stored XSS in GitHub Enterprise Server enables SSH key additionPriority LOW 39
- TI-2026-93660 SSH certificate authentication bypass in GitHub Enterprise ServerPriority LOW 39
Timeline
- 2026-11-18 Threatist record created from CVE-2026-112740
- 2026-11-18 Alias added: GHSA-vgmg-xrw2-8659
- 2026-11-18 CISA SSVC decision points changed
References
More GitHub vulnerabilities
- TI-2024-04632 An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES)… CVSS 4.0CRITICAL 10.0
- TI-2022-08539 Integer overflow in table parsing extension leads to heap memory corruption CVSS 3.1CRITICAL 9.8
- TI-2026-34990 GitHub MCP Server: Nil Pointer Dereference DoS in completion/complete Handler CVSS 3.1HIGH 7.5
- TI-2026-32884 GitHub Copilot CLI: Nested Bare Repository Can Execute Arbitrary Commands via core.fsmonitor CVSS 4.0HIGH 8.5
- TI-2023-11632 Quadratic complexity may lead to a denial of service in cmark-gfm CVSS 3.1HIGH 7.5
- TI-2023-10324 Quadratic complexity may lead to a denial of service in cmark-gfm CVSS 3.1HIGH 7.5
Sources
- CVE-2026-112740 · CVE Program
- CVE-2026-112740 · NVD
- FIRST EPSS
- GHSA-vgmg-xrw2-8659 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences