CVE-2024-50349 | Git does not sanitize URLs when asking for credentials interactively

Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals. When Git asks for credentials via a terminal prompt (i.e. without using any credential helper), it prints out the host name for which the user is expected to provide a username and/or a password. At this stage, any URL-encoded parts have been decoded already, and are printed verbatim. This allows attackers to craft URLs that contain ANSI escape sequences that the terminal interpret to confuse users e.g. into providing passwords for trusted Git hosting sites when in fact they are then sent to untrusted sites that are under the attacker's control. This issue has been patch via commits `7725b81` and `c903985` which are included in release 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, and v2.40.4. Users are advised to upgrade. Users unable to upgrade should avoid cloning from untrusted URLs, especially recursive clones.

Published: 2025-01-14 Last update: 2025-12-18 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-50349 is rated Low Risk (22.3/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.64%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2024-50349

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 2.78% 0.64% -2.14%
2 2026-06-05 1.14% 2.78% +1.64%
3 2026-05-25 1.14%

Full EPSS history (18 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-50349

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
2.1 4.0 LOW
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/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 Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network.
Attack complexity (AC:H)
Exploitation depends on constrained or hard-to-reproduce conditions.
Attack requirements (AT:P)
Additional preconditions must be present for exploitation.
Privileges required (PR:N)
No privileges are required.
User interaction (UI:A)
User interaction is required in an active way.
Vulnerable system confidentiality impact (VC:N)
No confidentiality impact on the vulnerable system.
Vulnerable system integrity impact (VI:L)
Limited integrity impact on the vulnerable system.
Vulnerable system availability impact (VA:N)
No availability impact on the vulnerable system.
Subsequent system confidentiality impact (SC:L)
Limited confidentiality impact on subsequent systems.
Subsequent system integrity impact (SI:L)
Limited integrity impact on subsequent systems.
Subsequent system availability impact (SA:N)
No availability impact on subsequent systems.
Exploit maturity (threat) (E:X)
Not defined: no reliable threat intelligence; scoring assumes the worst case (equivalent to Attacked).
Confidentiality requirement (CR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Integrity requirement (IR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Availability requirement (AR:X)
Not defined: insufficient information; scoring treats this like High (worst case).
Modified attack vector (MAV:X)
Not defined: scoring uses the Base Attack Vector (AV).
Modified attack complexity (MAC:X)
Not defined: scoring uses the Base Attack Complexity (AC).
Modified attack requirements (MAT:X)
Not defined: scoring uses the Base Attack Requirements (AT).
Modified privileges required (MPR:X)
Not defined: scoring uses the Base Privileges Required (PR).
Modified user interaction (MUI:X)
Not defined: scoring uses the Base User Interaction (UI).
Modified vulnerable system confidentiality impact (MVC:X)
Not defined: scoring uses the Base VC metric.
Modified vulnerable system integrity impact (MVI:X)
Not defined: scoring uses the Base VI metric.
Modified vulnerable system availability impact (MVA:X)
Not defined: scoring uses the Base VA metric.
Modified subsequent system confidentiality impact (MSC:X)
Not defined: scoring uses the Base SC metric.
Modified subsequent system integrity impact (MSI:X)
Not defined: scoring uses the Base SI metric.
Modified subsequent system availability impact (MSA:X)
Not defined: scoring uses the Base SA metric.
Safety (supplemental) (S:X)
Not evaluated.
Automatable (supplemental) (AU:X)
Not evaluated.
Recovery (supplemental) (R:X)
Not evaluated.
Value density (supplemental) (V:X)
Not evaluated.
Vulnerability response effort (supplemental) (RE:X)
Not evaluated.
Provider urgency (supplemental) (U:X)
Not evaluated.
[email protected]
4.7 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.
2.8 1.4 [email protected]

Weakness enumeration for CVE-2024-50349

OS Trackers for CVE-2024-50349

vendor priority summary link
alpine CVE-2024-50349: 1 source package rows (git); 84 state rows across 6 repos (3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 6, open 78. https://security.alpinelinux.org/vuln/CVE-2024-50349
debian not yet assigned CVE-2024-50349 not yet assigned priority: Debian including 1 source packages (git), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2024-50349
redhat low https://access.redhat.com/security/cve/CVE-2024-50349
suse medium CVE-2024-50349 severity moderate: SUSE including 166 source package names (0.0.17-1.1:git-core-2.43.0-150600.3.9.1, 0.1.6-1.2:git-2.43.0-150600.3.9.1, …), 462 product×package rows across 101 product lines (Container bci/gcc, Container bci/golang, … (101 product lines)): Fixed 408, Known Not Affected 54. https://www.suse.com/security/cve/CVE-2024-50349/
ubuntu medium CVE-2024-50349 medium priority: Ubuntu including 1 source packages (git), 9 status rows across 9 suites (bionic, focal, jammy, noble, oracular, plucky, questing, upstream, xenial): released 9. https://ubuntu.com/security/CVE-2024-50349

Affected software / configurations for CVE-2024-50349

Vendor Product Version Raw CPE
git git < 2.40.4 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.41.0, < 2.41.3 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.42.0, < 2.42.4 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.43.0, < 2.43.6 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.44.3, < 2.44.3 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.45.3, < 2.45.3 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.46.3, < 2.46.3 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git >= 2.47.0, < 2.47.2 cpe:2.3:a:git:git:*:*:*:*:*:*:*:*
git git 2.48.0 cpe:2.3:a:git:git:2.48.0:*:*:*:*:*:*:*
debian debian_linux 11.0 cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

References for CVE-2024-50349

cvelogic Threat Intelligence