CVE-2024-50349
Git vulnerability analysis and mitigation

Overview

Git has disclosed a security vulnerability (CVE-2024-50349) that affects its credential handling mechanism when requesting credentials via terminal prompts. The vulnerability was discovered and disclosed on January 14, 2025, affecting multiple Git versions including v2.48.0 and earlier versions down to v2.40.3. The issue impacts Git's core functionality when it asks for credentials without using a credential helper (GitHub Advisory).

Technical details

The vulnerability occurs when Git decodes URL-encoded parts before displaying them in credential prompts, without properly neutralizing control sequences. This behavior allows attackers to craft URLs containing ANSI escape sequences that the terminal interprets. The issue has been assigned a CVSS v4.0 score of 2.1 (Low) with the vector string CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N. The vulnerability is associated with multiple CWE categories including CWE-150 (Improper Neutralization of Escape, Meta, or Control Sequences), CWE-147 (Improper Neutralization of Input Terminators), and CWE-116 (Improper Encoding or Escaping of Output) (GitHub Advisory).

Impact

The vulnerability could allow attackers to craft malicious URLs that confuse users into providing passwords for trusted Git hosting sites, which are then sent to untrusted sites under the attacker's control. This creates a potential credential theft risk when users interact with untrusted Git repositories (GitHub Advisory).

Mitigation and workarounds

The issue has been patched in multiple Git versions including v2.48.1, v2.47.2, v2.46.3, v2.45.3, v2.44.3, v2.43.6, v2.42.4, v2.41.3, and v2.40.4 through commits 7725b81 and c903985. Users are advised to upgrade to these patched versions. For those unable to upgrade immediately, the recommended workaround is to avoid cloning from untrusted URLs, especially recursive clones (GitHub Advisory, Ubuntu Security).

Additional resources


SourceThis report was generated using AI

Related Git vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-52005HIGH7.5
  • GitGit
  • perl-Git
NoYesJan 15, 2025
CVE-2024-32465HIGH7.3
  • GitGit
  • git
NoYesMay 14, 2024
CVE-2024-52006LOW2.1
  • GitGit
  • git-core-debuginfo
NoYesJan 14, 2025
CVE-2024-50349LOW2.1
  • GitGit
  • git-all
NoYesJan 14, 2025
ELSA-2025-11534HIGHN/A
  • GitGit
  • git-subtree
NoYesJul 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management