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-2024-52006

CVE-2024-52006: Git Information Disclosure Vulnerability

CVE-2024-52006 is an information disclosure vulnerability in Git that affects credential helpers in .NET and Node.js ecosystems. This article covers the technical details, affected versions, and mitigation strategies.

Published: January 28, 2026

CVE-2024-52006 Overview

CVE-2024-52006 is an input validation vulnerability in Git's credential helper protocol that allows for Carriage Return (CR) injection. Git defines a line-based protocol for exchanging information between Git and credential helpers. However, certain ecosystems—most notably .NET and Node.js—interpret single Carriage Return characters as newlines, which renders the protections against the earlier CVE-2020-5260 incomplete for credential helpers that treat Carriage Returns in this manner.

This vulnerability represents an incomplete fix for CVE-2020-5260, where attackers could potentially inject malicious data into the credential helper communication channel by exploiting the inconsistent handling of CR characters across different platforms and runtimes.

Critical Impact

Attackers can potentially manipulate Git credential helper protocol communications through CR injection, enabling credential theft or protocol manipulation when using vulnerable credential helpers on affected ecosystems like .NET or Node.js.

Affected Products

  • Git versions prior to v2.48.1
  • Git versions v2.47.x prior to v2.47.2, v2.46.x prior to v2.46.3, v2.45.x prior to v2.45.3
  • Git versions v2.44.x prior to v2.44.3, v2.43.x prior to v2.43.6, v2.42.x prior to v2.42.4, v2.41.x prior to v2.41.3, v2.40.x prior to v2.40.4
  • Debian Linux 11.0

Discovery Timeline

  • 2025-01-14 - CVE-2024-52006 published to NVD
  • 2025-12-18 - Last updated in NVD database

Technical Details for CVE-2024-52006

Vulnerability Analysis

The vulnerability stems from how Git's credential helper protocol handles line terminators. Git uses a simple line-based text protocol to communicate with external credential helpers. The protocol was designed with Unix-style line endings (LF - \n) in mind, but failed to account for how different runtime environments handle Carriage Return characters (\r or 0x0D).

When credential helpers are implemented in ecosystems like .NET or Node.js, these runtimes may interpret a standalone CR character as a newline delimiter. This creates an opportunity for attackers to craft malicious URLs or repository configurations that inject CR characters, which are then interpreted as line breaks by vulnerable credential helpers while being treated as part of the same line by Git itself.

This represents a bypass of the protections implemented for CVE-2020-5260, which addressed similar injection attacks but did not account for this specific line terminator inconsistency across platforms.

Root Cause

The root cause is an Improper Encoding or Escaping of Output (CWE-116) in Git's credential helper protocol. The protocol specification and implementation did not properly sanitize or reject Carriage Return characters, assuming that only LF characters would be treated as line terminators. This assumption breaks when interacting with credential helpers built on runtimes that use different newline conventions.

Attack Vector

The attack requires user interaction through cloning or interacting with a malicious repository. An attacker would craft a repository with specially constructed URLs containing embedded CR characters. When Git communicates with a vulnerable credential helper, these CR characters could be interpreted as protocol line separators, allowing the attacker to inject additional protocol commands or manipulate credential data.

The attack is network-based and requires the victim to clone from an attacker-controlled or compromised repository, particularly when using recursive clones that may process untrusted submodule URLs.

text
// Security patch in Documentation/config/credential.txt
 	will be URL-encoded by default). Configure this setting to `false` to
 	override that behavior.
 
+credential.protectProtocol::
+	By default, Carriage Return characters are not allowed in the protocol
+	that is used when Git talks to a credential helper. This setting allows
+	users to override this default.
+
 credential.username::
 	If no username is set for a network authentication, use this username
 	by default. See credential.<context>.* below, and

Source: Git Commit b01b9b8

The patch introduces a new configuration option credential.protectProtocol that blocks Carriage Return characters in the credential helper protocol by default:

c
// Security patch in credential.c
 		c->use_http_path = git_config_bool(var, value);
 	else if (!strcmp(key, "sanitizeprompt"))
 		c->sanitize_prompt = git_config_bool(var, value);
+	else if (!strcmp(key, "protectprotocol"))
+		c->protect_protocol = git_config_bool(var, value);
 
 	return 0;
 }

Source: Git Commit b01b9b8

Detection Methods for CVE-2024-52006

Indicators of Compromise

  • Unusual credential helper activity or unexpected authentication prompts when cloning repositories
  • Repository URLs containing encoded or raw Carriage Return characters (%0D or \r)
  • Unexpected credential leakage to unauthorized servers
  • Git operations failing with credential helper protocol errors after applying patches

Detection Strategies

  • Monitor Git operations for URLs containing CR characters (%0D encoded or raw \r)
  • Audit credential helper configurations and ensure they are from trusted sources
  • Review Git logs for unusual credential helper interactions or authentication failures
  • Implement network monitoring to detect credential exfiltration to unexpected endpoints

Monitoring Recommendations

  • Enable verbose Git logging during clone operations from untrusted sources
  • Monitor for updates to credential helper binaries or configurations
  • Track network connections made by Git and credential helper processes during repository operations
  • Audit submodule URLs in repositories before performing recursive clones

How to Mitigate CVE-2024-52006

Immediate Actions Required

  • Upgrade Git to patched versions: v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, or v2.40.4
  • Avoid cloning repositories from untrusted sources until patched
  • Do not use recursive clones on untrusted repositories as submodule URLs may contain malicious content
  • Review and audit credential helpers in use, particularly those built on .NET or Node.js

Patch Information

The vulnerability has been addressed in Git commit b01b9b8 which introduces the credential.protectProtocol configuration option. This option is enabled by default and disallows Carriage Return characters in the credential helper protocol.

Patched versions include:

  • v2.48.1
  • v2.47.2
  • v2.46.3
  • v2.45.3
  • v2.44.3
  • v2.43.6
  • v2.42.4
  • v2.41.3
  • v2.40.4

For additional details, see the Git Security Advisory and Git Credential Manager Security Advisory. Debian users should also consult the Debian LTS Announcement.

Workarounds

  • Avoid cloning from untrusted URLs until Git can be upgraded to a patched version
  • Be especially cautious with recursive clones as they process submodule URLs automatically
  • Consider using credential helpers that do not rely on .NET or Node.js runtimes if unable to patch immediately
  • Manually review repository configurations and submodule URLs before cloning
bash
# Verify Git version is patched
git --version

# Upgrade Git on Debian/Ubuntu
sudo apt update && sudo apt upgrade git

# Upgrade Git on RHEL/CentOS
sudo yum update git

# Upgrade Git on macOS with Homebrew
brew upgrade 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

  • SeverityLOW

  • CVSS Score2.1

  • EPSS Probability0.47%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-116
  • Technical References
  • GitHub Security Advisory

  • Git Security Advisory

  • Debian LTS Announcement
  • Vendor Resources
  • Git Commit Update

  • Git Security Advisory
  • Related CVEs
  • CVE-2025-66413: Git for Windows NTLM Hash Disclosure Flaw

  • CVE-2024-50349: Git Information Disclosure Vulnerability

  • CVE-2024-50338: Git Credential Manager Info Disclosure

  • CVE-2022-39253: Git Information Disclosure Vulnerability
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