An XML signature wrapping vulnerability was present in GitHub Enterprise Server (GHES) when using SAML authentication with specific identity providers utilizing publicly exposed signed federation metadata XML. This vulnerability allowed an attacker with direct network access to GitHub Enterprise Server to forge a SAML response to provision and/or gain access to a user with site administrator privileges. Exploitation of this vulnerability would allow unauthorized access to the instance without requiring prior authentication. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.14 and was fixed in versions 3.13.3, 3.12.8, 3.11.14, and 3.10.16. This vulnerability was reported via the GitHub Bug Bounty program.
The issue concerns the XML signature verification mechanism (CWE-347 — improper cryptographic signature verification) during SAML authentication with identity providers using publicly available, signed XML federation metadata. An attacker with direct network access to the GHES instance can construct a modified SAML response that passes signature verification using the 'wrapping' technique — injecting malicious data around the signed XML element. As a result, the server accepts forged SAML assertions as authentic, allowing the creation or takeover of an account with the highest privileges.
An attacker can gain unauthorized access to a GitHub Enterprise Server instance with site administrator privileges without prior authentication, enabling full control over the environment, repositories, and user data.
GitHub Enterprise Server should be updated as soon as possible to one of the following patched versions: 3.13.3, 3.12.8, 3.11.14, or 3.10.16. If immediate patching is not possible, consider restricting network access to the GHES instance and temporarily disabling SAML authentication until the patch is deployed.
All versions of GitHub Enterprise Server prior to 3.14 using SAML authentication with identity providers that use publicly available XML federation metadata.
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:U/V:C/RE:H/U:RedGitHub Enterprise Server
APPGithub3.10.0 – 3.10.16 (excl.)3.11.0 – 3.11.14 (excl.)3.12.0 – 3.12.8 (excl.)3.13.0 – 3.13.3 (excl.)
Related vulnerabilities
SSRF z path traversal w GitHub Enterprise Server — dostęp do wewnętrznych usług
Obejście uwierzytelniania SAML SSO w GitHub Enterprise Server
Authentication bypass w GitHub Enterprise Server via SAML SSO
Command injection w GitHub Enterprise Server — eskalacja do admina SSH
Command injection w GitHub Enterprise Server — przejęcie dostępu SSH admina