CVE-2024-4985 in Github Enterprise Server
An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES) when utilizing SAML single sign-on authentication with the optional encrypted assertions feature. This vulnerability allowed an attacker to forge a SAML response to provision and/or gain access to a user with site administrator...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Github | Enterprise Server | ≥ 3.9.0, ≤ 3.9.14 ≥ 3.10.0, ≤ 3.10.12 ≥ 3.11.0, ≤ 3.11.10 ≥ 3.12.0, ≤ 3.12.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
An authentication bypass vulnerability was present in the GitHub Enterprise Server (GHES) when utilizing SAML single sign-on authentication with the optional encrypted assertions feature. This vulnerability allowed an attacker 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.13.0 and was fixed in versions 3.9.15, 3.10.12, 3.11.10 and 3.12.4. This vulnerability was reported via the GitHub Bug Bounty program.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-4985 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-218449-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-05-20 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-303: CWE-303
Related attack patterns (CAPEC)
CAPEC-90 Reflection Attack in Authentication Protocol via CWE-303
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
An authentication bypass vulnerability in GitHub Enterprise Server (GHES) when using SAML single sign-on with encrypted assertions allows attackers to forge SAML responses, potentially gaining unauthorized access as a site administrator.
The vulnerability arises from improper validation of SAML assertions when the encrypted assertions feature is enabled. Attackers can craft malicious SAML responses that bypass authentication checks, leading to unauthorized access.
Questions
What is CVE-2024-4985?
An authentication bypass vulnerability in GitHub Enterprise Server (GHES) when using SAML single sign-on with encrypted assertions allows attackers to forge SAML responses, potentially gaining unauthorized access as a site administrator.
What is the CVSS score for CVE-2024-4985?
CVE-2024-4985 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.8%.
Is CVE-2024-4985 actively exploited?
No confirmed active exploitation of CVE-2024-4985 as of 2026-09-25.
How do I remediate CVE-2024-4985?
Priority: IMMEDIATE. Advisory: https://docs.github.com/en/[email protected]/admin/release-notes#3.10.12
What systems are affected by CVE-2024-4985?
CVE-2024-4985 affects Github Enterprise Server.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Github","product":"Enterprise Server","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.