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-2025-3509

CVE-2025-3509: GitHub Enterprise Server RCE Vulnerability

CVE-2025-3509 is a remote code execution vulnerability in GitHub Enterprise Server exploiting pre-receive hooks during specific operational windows. This article covers technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-3509 Overview

A Remote Code Execution (RCE) vulnerability was identified in GitHub Enterprise Server that allows attackers to execute arbitrary code by exploiting the pre-receive hook functionality. This vulnerability can lead to privilege escalation and complete system compromise of affected GitHub Enterprise Server installations.

The vulnerability involves using dynamically allocated ports that become temporarily available during specific operational conditions, such as hot patch upgrades. This time-limited attack window restricts exploitation opportunities but still presents significant risk when conditions align.

Critical Impact

Attackers with site administrator permissions or repository modification rights can execute arbitrary code on GitHub Enterprise Server, potentially compromising source code repositories, CI/CD pipelines, and sensitive enterprise data.

Affected Products

  • GitHub Enterprise Server versions prior to 3.18
  • GitHub Enterprise Server versions prior to 3.17.1
  • GitHub Enterprise Server versions prior to 3.16.4, 3.15.8, 3.14.13, and 3.13.16

Discovery Timeline

  • April 17, 2025 - CVE-2025-3509 published to NVD
  • September 5, 2025 - Last updated in NVD database

Technical Details for CVE-2025-3509

Vulnerability Analysis

This vulnerability is classified as CWE-94 (Improper Control of Generation of Code - Code Injection). The flaw resides in the pre-receive hook functionality of GitHub Enterprise Server, which is designed to enforce policies and run automated checks before accepting repository pushes.

The core issue involves dynamically allocated ports that temporarily become available during specific server operations, particularly hot patch upgrades. When these ports are exposed, an attacker can exploit the pre-receive hook mechanism to inject and execute arbitrary code on the server.

Exploitation requires elevated privileges—either site administrator permissions to enable and configure pre-receive hooks, or sufficient repository permissions where pre-receive hooks are already enabled. This privilege requirement provides some mitigation, but insider threats or compromised administrator accounts significantly increase risk.

Root Cause

The vulnerability stems from improper handling of dynamically allocated network ports during server maintenance operations. When GitHub Enterprise Server performs hot patch upgrades, certain ports become temporarily available, creating a window where the pre-receive hook functionality can be abused to execute malicious code. The code injection flaw allows attackers to bypass intended security controls when these conditions are met.

Attack Vector

The attack is network-based and requires the attacker to have specific permissions within the GitHub Enterprise Server environment. The exploitation path involves:

  1. The attacker must have either site administrator permissions to configure pre-receive hooks, or permissions to modify repositories where pre-receive hooks are already enabled
  2. The attacker monitors for or triggers conditions where dynamically allocated ports become available (such as during hot patch operations)
  3. During this window, the attacker crafts malicious input through the pre-receive hook mechanism
  4. The vulnerable code processes this input, leading to arbitrary code execution with elevated privileges

The attack requires precise timing alignment with server maintenance windows, which limits the practical exploitation window but does not eliminate the risk.

Detection Methods for CVE-2025-3509

Indicators of Compromise

  • Unexpected modifications to pre-receive hook configurations or scripts
  • Unusual network activity on dynamically allocated ports during maintenance windows
  • Anomalous process execution originating from the GitHub Enterprise Server application
  • Unauthorized changes to repository settings or hook permissions
  • Log entries indicating code execution from pre-receive hook contexts outside normal operations

Detection Strategies

  • Monitor audit logs for changes to pre-receive hook configurations and permissions
  • Implement network monitoring to detect unusual port activity during hot patch operations
  • Review administrator account activity for unauthorized hook modifications
  • Deploy endpoint detection to identify suspicious process chains from the GHES application
  • Establish baseline behavior for pre-receive hook execution patterns to detect anomalies

Monitoring Recommendations

  • Enable comprehensive audit logging for all administrative actions on GitHub Enterprise Server
  • Configure alerts for pre-receive hook configuration changes across all repositories
  • Monitor system processes for unexpected code execution during maintenance windows
  • Implement network segmentation to limit exposure of dynamically allocated ports
  • Review access logs regularly for site administrator and privileged repository accounts

How to Mitigate CVE-2025-3509

Immediate Actions Required

  • Upgrade GitHub Enterprise Server to patched versions immediately: 3.17.1, 3.16.4, 3.15.8, 3.14.13, or 3.13.16
  • Audit all pre-receive hook configurations across the enterprise environment
  • Review and restrict site administrator permissions to essential personnel only
  • Monitor for suspicious activity during any maintenance or upgrade operations
  • Consider temporarily disabling pre-receive hooks until patching is complete

Patch Information

GitHub has released security patches addressing this vulnerability. Organizations should upgrade to one of the following fixed versions based on their current version branch:

  • Version 3.17.1 - GitHub Enterprise Release Notes 3.17.1
  • Version 3.16.4 - GitHub Enterprise Release Notes 3.16.4
  • Version 3.15.8 - GitHub Enterprise Release Notes 3.15.8
  • Version 3.14.13 - GitHub Enterprise Release Notes 3.14.13
  • Version 3.13.16 - GitHub Enterprise Release Notes 3.13.16

This vulnerability was reported through the GitHub Bug Bounty program.

Workarounds

  • Restrict pre-receive hook configuration to only essential administrators
  • Disable pre-receive hooks on repositories where they are not strictly required
  • Schedule hot patch operations during low-activity periods with enhanced monitoring
  • Implement additional network controls to limit access during maintenance windows
  • Apply principle of least privilege for all repository modification permissions
bash
# Review pre-receive hooks configuration
ghe-hook-list --pre-receive

# Audit administrator access
ghe-org-admin-promote --list

# Check current version
ghe-version

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGithub Enterprise Server

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.85%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:L/VI:H/VA:L/SC:L/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:N/R:U/V:C/RE:M/U:Amber
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Enterprise Release Notes 3.13.16

  • GitHub Enterprise Release Notes 3.14.13

  • GitHub Enterprise Release Notes 3.15.8

  • GitHub Enterprise Release Notes 3.16.4

  • GitHub Enterprise Release Notes 3.17.1
  • Related CVEs
  • CVE-2026-4821: GitHub Enterprise Server RCE Vulnerability

  • CVE-2026-3854: GitHub Enterprise Server RCE Vulnerability

  • CVE-2024-0200: GitHub Enterprise Server RCE Vulnerability

  • CVE-2026-4296: 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