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
    • 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-2022-24975

CVE-2022-24975: Git-scm Git Information Disclosure Issue

CVE-2022-24975 is an information disclosure issue in Git-scm Git known as GitBleed, where --mirror operations expose deleted content. This article covers technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-24975 Overview

CVE-2022-24975, known as "GitBleed," is an information disclosure vulnerability affecting Git through version 2.35.1. The vulnerability relates to the --mirror documentation for Git, which does not adequately mention the availability of deleted content when performing clone operations. This documentation gap could present a security risk if information-disclosure auditing processes rely on a standard clone operation without the --mirror option, potentially leaving sensitive deleted content accessible to attackers who perform a full mirror clone.

It is important to note that this CVE has been disputed by multiple third parties who believe this behavior is an intended feature of the Git binary and does not constitute a security risk. However, organizations relying on Git for version control of sensitive data should be aware of the implications.

Critical Impact

Sensitive information previously committed and then deleted from Git repositories may remain accessible through mirror clones, potentially exposing credentials, API keys, configuration secrets, and other confidential data that developers believed was removed.

Affected Products

  • Git versions through 2.35.1
  • Git-scm Git (all versions prior to documentation clarification)
  • Any systems performing security audits using standard git clone without --mirror

Discovery Timeline

  • 2022-02-11 - CVE-2022-24975 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24975

Vulnerability Analysis

The GitBleed vulnerability stems from a documentation gap in Git's --mirror option behavior. When developers or security teams perform a standard git clone operation, they receive only the current state of branches and tags. However, Git repositories internally retain objects that may no longer be reachable through normal references, including content that was "deleted" through force pushes, branch deletions, or history rewrites.

When using the --mirror flag, Git performs a bare clone that includes all refs and the complete object database, including unreachable objects. This means that sensitive data such as hardcoded credentials, API keys, private certificates, or other secrets that were previously committed and then "deleted" through git rebase, git filter-branch, or similar history-rewriting operations may still be accessible.

The core issue is that security auditing processes and compliance checks that rely on standard clone operations may falsely conclude that sensitive data has been successfully removed from a repository when it actually persists in the Git object database.

Root Cause

The root cause is classified under CWE-668 (Exposure of Resource to Wrong Sphere). The vulnerability exists because Git's documentation for the --mirror option did not clearly communicate that deleted content remains available through mirror clones. This documentation gap leads to a false sense of security when organizations attempt to remove sensitive data from repositories.

Git's architecture stores all objects (commits, trees, blobs) in an object database. Even when objects become unreachable through normal references, they persist until garbage collection actively removes them. Mirror clones capture this complete state, including "deleted" content that standard clones would not retrieve.

Attack Vector

An attacker exploiting this vulnerability would perform a mirror clone of a target repository to access deleted content. The attack is network-based and requires no authentication beyond what is needed to access the repository itself. The attack can be executed as follows:

  1. Attacker identifies a Git repository of interest (public or one they have access to)
  2. Attacker performs a git clone --mirror operation instead of a standard clone
  3. Attacker examines the complete object database for unreachable objects
  4. Attacker extracts sensitive data from objects that were "deleted" from the repository history

This attack is particularly effective against repositories where developers have previously committed secrets (such as API keys, database credentials, or private keys) and then attempted to remove them through history rewriting. The Nightwatch Cybersecurity GitBleed Analysis provides detailed information on this attack methodology. Additional research from AquaSec on Hard-Coded Secrets explores the broader implications of exposed secrets in version control systems.

Detection Methods for CVE-2022-24975

Indicators of Compromise

  • Unusual git clone --mirror operations against repositories containing sensitive data
  • Access logs showing complete repository database transfers rather than standard branch clones
  • Evidence of secret extraction tools being used against cloned repositories
  • Unexpected authentication using credentials that were supposedly removed from repositories

Detection Strategies

  • Monitor repository access logs for --mirror clone operations, particularly from unexpected sources
  • Implement secret scanning on all repository objects, not just current branch heads
  • Use Git hosting platform audit logs to track full repository clones versus partial clones
  • Deploy secret detection tools that analyze the complete Git object database

Monitoring Recommendations

  • Enable comprehensive audit logging on Git hosting platforms (GitHub, GitLab, Bitbucket)
  • Implement alerts for bulk repository cloning activities
  • Regularly scan repositories for exposed secrets using tools like git-secrets, truffleHog, or Gitleaks
  • Monitor for credential usage that correlates with recently "deleted" secrets

How to Mitigate CVE-2022-24975

Immediate Actions Required

  • Audit all repositories for previously committed secrets, scanning the complete object database including unreachable objects
  • Rotate any credentials, API keys, or secrets that have ever been committed to repositories, regardless of deletion status
  • Implement pre-commit hooks to prevent secrets from being committed in the first place
  • Review repository access controls to limit who can perform mirror clones

Patch Information

This issue is primarily a documentation concern rather than a code vulnerability. The Git Documentation Reference provides the official documentation for the --mirror option. Organizations should focus on operational mitigations rather than waiting for a specific patch. The Git maintainers have discussed this issue on the Kernel Lore mailing list.

Workarounds

  • Use git gc --prune=now on repositories after removing sensitive data to garbage collect unreachable objects
  • Consider using BFG Repo-Cleaner or git filter-repo for thorough history sanitization
  • Implement repository policies requiring server-side garbage collection after secret removal
  • For highly sensitive repositories, consider recreating repositories from scratch rather than attempting to purge history
bash
# Configuration example for repository cleanup after secret removal
# Run garbage collection to remove unreachable objects
git reflog expire --expire=now --all
git gc --prune=now --aggressive

# Verify no sensitive objects remain
git fsck --unreachable | wc -l

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechGit

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.67%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-668
  • Technical References
  • Kernel Lore Discussion

  • AquaSec Blog on Hard-Coded Secrets

  • Nightwatch Cybersecurity GitBleed Analysis
  • Vendor Resources
  • GitHub Documentation Reference
  • Related CVEs
  • CVE-2025-66413: Git for Windows NTLM Hash Disclosure Flaw

  • CVE-2024-50349: Git Information Disclosure Vulnerability

  • CVE-2024-52006: Git Information Disclosure Vulnerability

  • CVE-2024-50338: Git Credential Manager Info Disclosure
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