cve.bz

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

7.4 highFix available

High (7.4) in github enterprise server.

On this page
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.

Severity

CVSS 4.0

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
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Assigned by
GitHub_P (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

  • GitHub Enterprise Server: fixed in 3.19.16
  • GitHub Enterprise Server: fixed in 3.20.12
  • GitHub Enterprise Server: fixed in 3.21.10
  • GitHub Enterprise Server: fixed in 3.22.5

Ask an AI about this CVE

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.

ProductAffected
GitHub Enterprise Serverfrom 3.19.0 before 3.19.*
GitHub Enterprise Serverfrom 3.20.0 before 3.20.*
GitHub Enterprise Serverfrom 3.21.0 before 3.21.*
GitHub Enterprise Serverfrom 3.22.0 before 3.22.*

Fixed in

ProductFixed in
GitHub Enterprise Server3.19.16
GitHub Enterprise Server3.20.12
GitHub Enterprise Server3.21.10
GitHub Enterprise Server3.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.

References

Check your stackJSON