The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-23040

CVE-2025-23040: GitHub Desktop Credential Disclosure Flaw

CVE-2025-23040 is an information disclosure vulnerability in GitHub Desktop that allows attackers to steal user credentials via malicious repository URLs. This article covers technical details, affected versions, and mitigations.

Updated: January 22, 2026

CVE-2025-23040 Overview

CVE-2025-23040 is an Insufficiently Protected Credentials vulnerability (CWE-522) affecting GitHub Desktop, an open-source Electron-based GitHub application designed for git development. The vulnerability allows an attacker to exfiltrate user credentials by convincing the victim to clone a repository containing a maliciously crafted remote URL, either directly or through a submodule.

Critical Impact

Attackers can steal GitHub usernames, OAuth tokens, and credentials for other Git remote hosts stored in GitHub Desktop by exploiting the git-credential protocol misinterpretation.

Affected Products

  • GitHub Desktop versions prior to 3.4.12
  • All platforms running vulnerable GitHub Desktop versions (Windows, macOS)
  • Environments using GitHub Desktop with stored Git credentials

Discovery Timeline

  • January 15, 2025 - CVE-2025-23040 published to NVD
  • January 15, 2025 - Last updated in NVD database

Technical Details for CVE-2025-23040

Vulnerability Analysis

This vulnerability exploits a flaw in how GitHub Desktop processes credential requests from Git during network operations. GitHub Desktop relies on Git to perform all network-related operations such as cloning, fetching, and pushing repositories. When a user attempts to clone a repository, GitHub Desktop invokes git clone, and when Git encounters a remote requiring authentication, it requests credentials for that remote host from GitHub Desktop using the git-credential protocol.

The core issue lies in the credential request parsing mechanism. When a maliciously crafted URL is processed, the credential request from Git can be misinterpreted by GitHub Desktop. This misinterpretation causes GitHub Desktop to transmit credentials intended for one host to a completely different, attacker-controlled host. The vulnerability requires local access and user interaction, as the victim must be convinced to clone a malicious repository.

Root Cause

The root cause of CVE-2025-23040 is improper validation and parsing of remote URLs within the git-credential protocol handler in GitHub Desktop. The application fails to properly sanitize and validate the host information extracted from credential requests, leading to a mismatch between the intended credential recipient and the actual destination. This is classified under CWE-522 (Insufficiently Protected Credentials), as the application does not adequately protect stored credentials from unauthorized disclosure.

Attack Vector

The attack requires local access with low privileges and user interaction. An attacker must craft a malicious repository with a specially formatted remote URL designed to exploit the credential parsing flaw. The attack chain proceeds as follows:

  1. The attacker creates or modifies a repository with a maliciously crafted remote URL
  2. The attacker convinces the victim to clone this repository (directly or as a submodule)
  3. When GitHub Desktop processes the clone operation, Git requests credentials for the remote
  4. The malformed URL causes GitHub Desktop to misinterpret the credential request
  5. GitHub Desktop transmits the victim's credentials (GitHub OAuth token, username, or other stored credentials) to the attacker's server instead of the legitimate host

The attack can be particularly effective when delivered through a submodule, as users may not scrutinize submodule URLs as carefully as primary repository URLs. For detailed technical information about the vulnerability mechanism, refer to the GitHub Security Advisory GHSA-36mm-rh9q-cpqq.

Detection Methods for CVE-2025-23040

Indicators of Compromise

  • Unexpected network connections to unknown hosts during Git clone operations
  • Suspicious repository clone requests containing unusual or malformed URLs in Git logs
  • OAuth token revocation alerts from GitHub indicating unauthorized access attempts
  • Credential access logs showing GitHub Desktop sending credentials to unrecognized domains

Detection Strategies

  • Monitor Git credential helper invocations for anomalous host patterns in the credential request
  • Review GitHub audit logs for authentication events from unexpected IP addresses or locations
  • Analyze network traffic from GitHub Desktop processes for connections to suspicious endpoints
  • Implement endpoint detection rules to flag credential transmission to non-standard Git hosting services

Monitoring Recommendations

  • Enable verbose logging for Git operations to capture credential protocol exchanges
  • Configure SentinelOne to monitor process behavior for GitHub Desktop credential handling anomalies
  • Set up alerts for GitHub OAuth token usage from unusual geographic locations or IP addresses
  • Regularly audit authorized GitHub Apps and OAuth tokens for any unauthorized access

How to Mitigate CVE-2025-23040

Immediate Actions Required

  • Update GitHub Desktop to version 3.4.12 or later immediately
  • Revoke and regenerate GitHub OAuth tokens if you suspect credential compromise
  • Review recently cloned repositories for suspicious remote URLs or submodules
  • Audit GitHub account activity and authorized applications for unauthorized access

Patch Information

GitHub has released version 3.4.12 of GitHub Desktop which addresses this vulnerability. Users should update immediately through the application's built-in update mechanism or by downloading the latest version from the official GitHub Desktop website. For guidance on reviewing and revoking potentially compromised credentials, consult the GitHub Apps Authorization Review documentation.

Workarounds

  • Avoid cloning repositories from untrusted sources until the update is applied
  • Manually inspect remote URLs in .gitmodules files before cloning repositories with submodules
  • Temporarily remove stored credentials from GitHub Desktop and use manual authentication
  • Consider using Git from the command line with careful URL verification for sensitive operations
bash
# Verify GitHub Desktop version
# On macOS/Linux, check About dialog or:
cat ~/Library/Application\ Support/GitHub\ Desktop/settings.json | grep version

# Revoke OAuth tokens via GitHub CLI
gh auth logout
gh auth login

# Clear stored credentials (if needed before update)
git credential-manager erase

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGithub Desktop

  • SeverityMEDIUM

  • CVSS Score6.6

  • EPSS Probability1.28%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-522
  • Technical References
  • GitHub Apps Authorization Review

  • Git Credential Documentation

  • GitHub Security Advisory GHSA-36mm-rh9q-cpqq
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal Vulnerability
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