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.
Show the promptExplain CVE-2026-112740 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-112740?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-112740?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-112740 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.
Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
github:enterprise server
Versions
From the CNA's record in the CVE List.
Product
Affected
GitHub Enterprise Server
from 3.19.0 before 3.19.*
GitHub Enterprise Server
from 3.20.0 before 3.20.*
GitHub Enterprise Server
from 3.21.0 before 3.21.*
GitHub Enterprise Server
from 3.22.0 before 3.22.*
Fixed in
Product
Fixed in
GitHub Enterprise Server
3.19.16
GitHub Enterprise Server
3.20.12
GitHub Enterprise Server
3.21.10
GitHub Enterprise Server
3.22.5
Attack patterns (CAPEC)
CAPEC-6 Argument Injection Likelihood: High · Severity: High
CAPEC-15 Command Delimiters Likelihood: High · Severity: High
CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
CAPEC-88 OS Command Injection Likelihood: High · Severity: High
CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.