Skip to content

CVE-2026-76851 Server-Side Request Forgery vulnerability in GitHub Enterprise Server allowed remote code execution via network access from pre-receive hooks to internal services

HighCVSS 7.7 EPSS 0.83%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
GitHub Enterprise Server < 3.17.20; >= 3.17.0, < 3.17.20; >= 3.18.0, < 3.18.14; >= 3.19.0, < 3.19.11 +2 more 3.17.20, 3.18.14, 3.19.11, 3.20.7, 3.21.5 Fixed

Affected products

ProductAffected versionsFixed in
GitHub Enterprise Server >= 3.17.0, < 3.17.20 3.17.20
GitHub Enterprise Server >= 3.18.0, < 3.18.14 3.18.14
GitHub Enterprise Server >= 3.19.0, < 3.19.11 3.19.11
GitHub Enterprise Server >= 3.20.0, < 3.20.7 3.20.7
GitHub Enterprise Server >= 3.21.0, < 3.21.5 3.21.5
GitHub Enterprise Server < 3.17.20 3.17.20

References