Enterprise ServerApplication · GitHub

CVE-2024-4985

CRITICAL · 9.8 CVSS v3.1 Published 2024-05-20
Fix available
A fix is available. Upgrade to 3.9.15 / 3.10.12 or later.
See remediation →
100/100
Remediation priority · Urgent
Remotely reachable No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
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.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

Authentication bypass vulnerability in GitHub Enterprise Server when using SAML SSO with optional encrypted assertions feature. An attacker can forge a SAML response to provision or gain access to a user with site administrator privileges without requiring prior authentication.

MitigationUpgrade GitHub Enterprise Server to version 3.9.15, 3.10.12, 3.11.10, 3.12.4, or 3.13.0+. Review SAML configuration and audit logs for signs of exploitation until patching is complete.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Enterprise ServerApplication
Affected:< 3.9.15>= 3.10.0, < 3.10.12>= 3.11.0, < 3.11.10>= 3.12.0, < 3.12.4

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Verify GitHub Enterprise Server version
    Check the installed version of GitHub Enterprise Server through the administrative web UI (Management Console > About) or by running 'ghe-version' from the administrative SSH shell
    Affected if The installed version falls within any of these ranges: < 3.9.15, >= 3.10.0 and < 3.10.12, >= 3.11.0 and < 3.11.10, or >= 3.12.0 and < 3.12.4
  2. Confirm SAML SSO is enabled
    Navigate to the Management Console, go to Authentication > SAML, and verify that SAML single sign-on is configured and enabled
    Affected if SAML SSO is actively configured and in use on the instance
  3. Check if encrypted assertions is enabled
    In the SAML configuration settings within Management Console (Authentication > SAML), look for the 'Require encrypted assertions' or 'Encrypted assertions' option and verify whether it is enabled or disabled
    Affected if Encrypted assertions is disabled or not enforced (the vulnerability applies when this optional feature is not properly enforced)
  4. Review for unauthorized site administrator accounts
    In the administrative web UI, go to Site admin > Users and filter for users with 'Site administrator' role. Cross-reference creation dates and source IP addresses in authentication logs to identify accounts created or modified outside expected patterns
    Affected if There are site administrator accounts that were created or modified without legitimate administrative action

The environment is affected if GitHub Enterprise Server is running an affected version AND SAML SSO is configured with encrypted assertions disabled or not enforced, allowing potential unauthorized admin access.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

dbcve · scoped
Upgrade available Upgrade to 3.9.15 / 3.10.12 / 3.11.10 or later
Fixed in 3.9.153.10.123.11.10
Interim mitigation

Upgrade GitHub Enterprise Server to version 3.9.15, 3.10.12, 3.11.10, 3.12.4, or 3.13.0+. Review SAML configuration and audit logs for signs of exploitation until patching is complete.

Recommended fix High confidence

Upgrade to version 3.9.15 (for 3.9.x line), 3.10.12 (for 3.10.x line), 3.11.10 (for 3.11.x line), 3.12.4 (for 3.12.x line), or latest 3.13+ release

  1. 1. Backup your GitHub Enterprise Server instance data and configuration before upgrading
  2. 2. Review GitHub Enterprise Server release notes for your target version to understand new features and any migration requirements
  3. 3. Download the appropriate GitHub Enterprise Server upgrade package for your version path (3.9.x, 3.10.x, 3.11.x, or 3.12.x)
  4. 4. Follow the standard GitHub Enterprise Server upgrade procedure: stop the instance services, apply the upgrade package, verify the upgrade completed successfully
  5. 5. After upgrade, verify that SAML authentication with encrypted assertions is functioning correctly
  6. 6. Test that user provisioning and administrative access via SAML SSO works as expected
  7. 7. Review audit logs to confirm normal authentication behavior
Caveat GHES upgrades may include breaking changes; review release notes for migration steps and deprecated features before upgrading

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Enterprise Server Scoped from the published advisory
  • Consultation6.0 h
  • Implementation12.0 h
  • Testing8.0 h
  • Review / QA4.0 h
30.0 hours of engineering $5,280
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $8,448.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-4985 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-4985 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data