Description
A Server-Side Request Forgery (SSRF) vulnerability was identified in GitHub Enterprise Server that allowed remote code execution on the instance. Insufficient network isolation allowed malicious pre-receive hook code to impersonate an internal service and redirect trusted internal requests to a privileged service, leading to elevated code execution. Exploitation required pre-receive hook networking to be enabled and either site administrator privileges or write access to a repository containing a configured pre-receive hook. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.17.20, 3.18.14, 3.19.11, 3.20.7, and 3.21.5. This vulnerability was reported via the GitHub Bug Bounty program.
Published: 2026-09-01
Score: 7.7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A Server‑Side Request Forgery flaw in GitHub Enterprise Server enabled an attacker to execute code on the instance when malicious pre‑receive hook code could impersonate an internal service. The vulnerability permitted the redirection of trusted internal requests to a privileged service, enabling any attacker with suitable privileges to run code with elevated rights. This grants complete control over the affected GitHub instance and potentially the underlying host.

Affected Systems

GitHub Enterprise Server versions prior to 3.22 are impacted. The vendor released mitigations in releases 3.17.20, 3.18.14, 3.19.11, 3.20.7, and 3.21.5. Any instance running an earlier release is vulnerable.

Risk and Exploitability

The CVSS score of 7.7 indicates high severity. The EPSS score is currently unavailable, but the vulnerability is not listed in the CISA KEV catalog. Exploitation requires pre‑receive hook networking to be enabled and either site‑administrator rights or write access to a repository containing a configured pre‑receive hook. Attackers could thus gain remote code execution by simply committing malicious code to a permissible repository.

Generated by OpenCVE AI on September 1, 2026 at 23:23 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the instance to GitHub Enterprise Server 3.22 or apply the vendor‑supplied patches for releases 3.17.20, 3.18.14, 3.19.11, 3.20.7, or 3.21.5 to eliminate the SSRF flaw.
  • Disable pre‑receive hook networking on the GitHub instance unless the functionality is required for operational purposes.
  • Restrict write access for all repositories that contain pre‑receive hooks, limiting it only to trusted developers and administrators.

Generated by OpenCVE AI on September 1, 2026 at 23:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Github
Github enterprise Server
Vendors & Products Github
Github enterprise Server

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Description A Server-Side Request Forgery (SSRF) vulnerability was identified in GitHub Enterprise Server that allowed remote code execution on the instance. Insufficient network isolation allowed malicious pre-receive hook code to impersonate an internal service and redirect trusted internal requests to a privileged service, leading to elevated code execution. Exploitation required pre-receive hook networking to be enabled and either site administrator privileges or write access to a repository containing a configured pre-receive hook. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.22 and was fixed in versions 3.17.20, 3.18.14, 3.19.11, 3.20.7, and 3.21.5. This vulnerability was reported via the GitHub Bug Bounty program.
Title Server-Side Request Forgery vulnerability in GitHub Enterprise Server allowed remote code execution via network access from pre-receive hooks to internal services
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Github Enterprise Server
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_P

Published:

Updated: 2026-09-01T21:55:10.149Z

Reserved: 2026-08-19T21:26:22.221Z

Link: CVE-2026-76851

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-01T22:17:13.033

Modified: 2026-09-01T22:17:13.033

Link: CVE-2026-76851

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T00:00:06Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)