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-2022-39253

CVE-2022-39253: Git Information Disclosure Vulnerability

CVE-2022-39253 is an information disclosure vulnerability in Git-scm Git that enables attackers to expose sensitive information through malicious symbolic links during local cloning. This article covers the technical details, affected versions, impact, and mitigation strategies.

Published: February 18, 2026

CVE-2022-39253 Overview

CVE-2022-39253 is a sensitive information exposure vulnerability affecting Git, the widely-used open source distributed revision control system. This vulnerability allows a malicious actor to expose sensitive information from a victim's machine through a symbolic link attack during local clone operations. When performing a local clone (where the source and target of the clone are on the same volume), Git copies the contents of the source's $GIT_DIR/objects directory into the destination by either creating hardlinks to the source contents, or copying them if hardlinks are disabled via --no-hardlinks.

A malicious actor could convince a victim to clone a repository containing a symbolic link pointing at sensitive information on the victim's machine. The attack can be executed either by having the victim clone a malicious repository on the same machine, or by having them clone a malicious repository embedded as a bare repository via a submodule from any source when using the --recurse-submodules option.

Critical Impact

Successful exploitation allows attackers to read arbitrary files from the victim's machine, potentially exposing SSH keys, credentials, configuration files, and other sensitive data through crafted symbolic links in malicious Git repositories.

Affected Products

  • Git versions prior to 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, and 2.37.4
  • Apple Xcode (prior to patched version)
  • Fedora 35, 36, and 37
  • Debian Linux 10.0

Discovery Timeline

  • 2022-10-18 - Security patches released for affected Git versions
  • 2022-10-19 - CVE-2022-39253 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-39253

Vulnerability Analysis

This vulnerability stems from improper handling of symbolic links during Git's local clone optimization process. When a user clones a repository locally, Git attempts to optimize the operation by creating hardlinks to objects in the source repository's $GIT_DIR/objects directory. While Git does not normally create symbolic links in this directory, the vulnerability allows a malicious repository to contain symbolic links that, when cloned, can be followed to read sensitive files outside the repository context.

The attack surface is particularly concerning in environments where users may clone repositories from untrusted sources on shared machines or when using the --recurse-submodules option. The submodule attack vector is especially dangerous because a malicious bare repository can be embedded as a submodule in an otherwise legitimate-looking repository from any hosting source.

The vulnerability is classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) and CWE-59 (Improper Link Resolution Before File Access), indicating both the information disclosure impact and the root cause being improper symlink handling.

Root Cause

The root cause lies in Git's local clone functionality failing to properly validate or restrict symbolic links within repository contents during the clone operation. Git's design assumes the $GIT_DIR/objects directory will not contain symbolic links, but this assumption does not account for maliciously crafted repositories that exploit the local clone optimization to follow symbolic links and expose arbitrary file contents from the victim's system.

Attack Vector

The attack requires local access in the sense that the victim must perform a clone operation on their machine. The attacker must craft a malicious repository containing symbolic links pointing to sensitive files on the target system (such as ~/.ssh/id_rsa, /etc/passwd, or application configuration files). The victim is then socially engineered into cloning this repository using one of two methods:

  1. Direct local clone: The victim clones the malicious repository located on a shared machine or network volume using Git's local optimization
  2. Submodule attack: The victim clones any repository that contains the malicious repository embedded as a bare repository submodule while using the --recurse-submodules flag

Upon successful exploitation, the attacker gains access to the contents of files that the symbolic links pointed to, leading to potential exposure of credentials, private keys, and other sensitive data.

Detection Methods for CVE-2022-39253

Indicators of Compromise

  • Unusual symbolic links present in cloned repository directories pointing to sensitive system paths
  • Repository objects containing references to files outside the normal repository structure (e.g., ~/.ssh/, /etc/, user home directories)
  • Unexpected file access events to sensitive files like SSH keys or credential files during or after Git clone operations
  • Presence of bare repositories embedded as submodules with suspicious symbolic link patterns

Detection Strategies

  • Monitor Git clone operations for access to files outside the expected repository scope, particularly sensitive paths like ~/.ssh/ or /etc/
  • Implement file integrity monitoring on critical files to detect unexpected read access during Git operations
  • Use endpoint detection solutions to correlate Git process activity with sensitive file access patterns
  • Audit submodule configurations in repositories for embedded bare repositories from untrusted sources

Monitoring Recommendations

  • Configure logging for Git operations to capture clone commands and associated file system activities
  • Deploy SentinelOne's endpoint protection to detect anomalous file access patterns associated with Git processes
  • Implement alerts for any Git clone operations using the --recurse-submodules flag on shared or multi-user systems
  • Monitor for new or modified symbolic links in repository directories that point to system paths outside the repository

How to Mitigate CVE-2022-39253

Immediate Actions Required

  • Upgrade Git to patched versions: 2.30.6, 2.31.5, 2.32.4, 2.33.5, 2.34.5, 2.35.5, 2.36.3, 2.37.4, or later
  • Avoid cloning repositories from untrusted sources on shared machines until patched
  • When cloning untrusted repositories, use the --no-local option or clone from URLs using the file:// scheme to bypass the local optimization
  • Avoid using --recurse-submodules when cloning repositories from untrusted sources

Patch Information

The Git maintainers released patches on 2022-10-18 addressing this vulnerability across multiple version branches. The fix prevents symbolic links from being followed during local clone operations. Updates are available through the official Git distribution and package managers for major Linux distributions including Fedora and Debian. Apple has addressed this issue in Xcode updates as documented in Apple Support Article HT213496. For detailed information, see the GitHub Security Advisory GHSA-3wp6-j8xr-qw85.

Workarounds

  • Use --no-local flag when cloning repositories to prevent Git from using the local optimization that is vulnerable to this attack
  • Clone repositories using the file:// scheme URL format instead of direct paths to avoid the local clone optimization
  • Configure Git globally to restrict file protocol access with git config --global protocol.file.allow user
  • Avoid using --recurse-submodules when cloning repositories from untrusted sources until systems are patched
  • On shared machines, ensure users only clone repositories from trusted sources
bash
# Configuration example
# Disable local optimization when cloning untrusted repositories
git clone --no-local /path/to/potentially/untrusted/repo

# Or clone using file:// scheme to avoid local optimization
git clone file:///path/to/repository

# Configure global protocol restrictions
git config --global protocol.file.allow user

# Clone without recursive submodules from untrusted sources
git clone --no-recurse-submodules https://example.com/repo.git

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability2.79%

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

  • CWE-59
  • Technical References
  • Full Disclosure Post

  • Openwall OSS-Security Email

  • Openwall OSS-Security Email

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202312-15

  • Apple Support Article
  • Vendor Resources
  • GitHub Security Advisory
  • 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
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