Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-5845

CVE-2026-5845: GitHub Enterprise Server Auth Bypass Flaw

CVE-2026-5845 is an authorization bypass flaw in GitHub Enterprise Server that lets attackers access private repositories beyond token scope. This article covers technical details, affected versions, and patches.

Published: April 23, 2026

CVE-2026-5845 Overview

An improper authorization vulnerability exists in the scoped user-to-server (ghu_) token authorization mechanism in GitHub Enterprise Server. This security flaw allows an authenticated attacker to access private repositories outside the intended installation scope, potentially including write operations. The vulnerability stems from an authorization fallback that incorrectly treated a revoked or deleted installation as a global installation context. Attackers could chain this with token revocation timing and SSH push attribution to obtain and reuse a victim-scoped token.

Critical Impact

Authenticated attackers can gain unauthorized access to private repositories, including write capabilities, by exploiting the improper authorization fallback mechanism in scoped token validation.

Affected Products

  • GitHub Enterprise Server versions prior to 3.21
  • GitHub Enterprise Server versions prior to 3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, and 3.14.26

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-5845 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-5845

Vulnerability Analysis

This vulnerability is classified as CWE-639 (Authorization Bypass Through User-Controlled Key), indicating a fundamental flaw in how GitHub Enterprise Server validates the scope and permissions of user-to-server tokens. The improper authorization occurs during the token validation process when an installation associated with a scoped token is revoked or deleted.

When a GitHub App installation is removed or revoked, the authorization system should invalidate all associated ghu_ tokens. However, due to a logic flaw in the fallback mechanism, the system instead treats these tokens as having global installation context. This effectively elevates the token's permissions beyond its original intended scope, granting access to private repositories the token holder should not be able to access.

The attack requires the attacker to already be authenticated to the GitHub Enterprise Server instance, but once authenticated, they can exploit the timing window around token revocation to maintain or escalate their access. The combination with SSH push attribution further complicates detection, as malicious repository operations may be attributed to the original token owner rather than the attacker.

Root Cause

The root cause lies in the authorization fallback logic within GitHub Enterprise Server's token validation system. When checking the validity of a scoped ghu_ token, the system performs a lookup against the associated GitHub App installation. If the installation record is not found (due to deletion or revocation), instead of denying access, the fallback code path incorrectly assumes a global installation context. This design flaw transforms what should be an access denial into an implicit privilege escalation.

Attack Vector

The attack requires local access with low privileges but involves precise timing. An authenticated attacker can exploit this vulnerability through the following mechanism:

  1. The attacker obtains or intercepts a valid scoped ghu_ token associated with a specific GitHub App installation
  2. The attacker monitors for or triggers the revocation/deletion of the associated installation
  3. During the timing window when the installation is removed but the token has not been fully invalidated, the attacker uses the token
  4. The fallback authorization logic grants the token global context instead of denying access
  5. The attacker can now access private repositories outside the original scope, including performing write operations

The vulnerability can be chained with SSH push attribution, allowing the attacker to attribute their malicious actions to the victim whose token was compromised, further obscuring the attack trail.

Detection Methods for CVE-2026-5845

Indicators of Compromise

  • Unusual access patterns from ghu_ tokens accessing repositories outside their normal scope
  • Repository access or write operations occurring shortly after GitHub App installation revocations
  • SSH push operations with mismatched attribution compared to API token authentication patterns
  • Access to private repositories from tokens associated with deleted or revoked installations

Detection Strategies

  • Monitor GitHub Enterprise Server audit logs for repository access events correlated with recent installation deletions
  • Implement alerting on ghu_ token usage patterns that show access to repositories not originally scoped to the token's installation
  • Review SSH push attribution logs for inconsistencies between committer identity and token owner
  • Deploy behavioral analytics to identify tokens exhibiting sudden scope expansion after installation changes

Monitoring Recommendations

  • Enable comprehensive audit logging for all token authentication events on GitHub Enterprise Server
  • Configure alerts for installation deletion events followed by continued token usage within a defined timing window
  • Implement real-time monitoring of private repository access patterns to detect scope violations
  • Regularly review and correlate installation lifecycle events with associated token activity

How to Mitigate CVE-2026-5845

Immediate Actions Required

  • Upgrade GitHub Enterprise Server to the patched versions: 3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, or 3.14.26
  • Audit all existing ghu_ tokens for suspicious access patterns in enterprise logs
  • Review recent GitHub App installation deletions and correlate with repository access events
  • Invalidate and regenerate tokens for any GitHub Apps where installations were recently revoked

Patch Information

GitHub has released security patches addressing this vulnerability across multiple supported versions of GitHub Enterprise Server. Organizations should upgrade to the following patched versions based on their current deployment:

Current Version BranchPatched Version
3.20.x3.20.1
3.19.x3.19.5
3.18.x3.18.8
3.17.x3.17.14
3.16.x3.16.17
3.15.x3.15.21
3.14.x3.14.26

This vulnerability was reported via the GitHub Bug Bounty program.

Workarounds

  • Implement strict network segmentation to limit lateral movement if token compromise occurs
  • Enforce multi-factor authentication for all GitHub Enterprise Server users to reduce initial token theft risk
  • Establish procedures to immediately invalidate all associated tokens when revoking GitHub App installations
  • Consider implementing additional authorization checks at the repository level independent of token scoping
bash
# Review GitHub Enterprise Server version and plan upgrade
ghe-version

# Check audit logs for suspicious ghu_ token activity
ghe-es-search 'actor_type:user AND action:repo.access' --since 7d

# Review installation deletion events
ghe-es-search 'action:integration_installation.destroy' --since 30d

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechGithub Enterprise Server

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.01%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N/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:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • GitHub Release Notes 3.14.26

  • GitHub Release Notes 3.15.21

  • GitHub Release Notes 3.16.17

  • GitHub Release Notes 3.17.14

  • GitHub Release Notes 3.18.8

  • GitHub Release Notes 3.19.5

  • GitHub Release Notes 3.20.1
  • Related CVEs
  • CVE-2026-4296: GitHub Enterprise Server Auth Bypass Flaw

  • CVE-2026-3307: GitHub Enterprise Server Auth Bypass Flaw

  • CVE-2026-3582: GitHub Enterprise Server Auth Bypass Flaw

  • CVE-2026-1355: GitHub Enterprise Server Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English