CVEBrief

Home / git / git / CVE-2024-50349

CVE-2024-50349: is it exploited, and which versions of git are affected and fixed?

CVE-2024-50349 is an improper output encoding vulnerability in git. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 16:09 UTC). Affected: git <= 2.40.3, git >= 2.41.0, <= 2.41.2, git >= 2.42.0, <= 2.42.3 and 6 more (CVE record by GitHub_M). Fixed in 2.40.4, 2.41.3, 2.42.4, 2.43.6 and 2 more (NVD). Severity: Low (2.1, CVSS 4.0, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:23 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 16:09 UTC
Affected
git <= 2.40.3, git >= 2.41.0, <= 2.41.2, git >= 2.42.0, <= 2.42.3 and 6 more
CVE record by GitHub_M
Fixed in
2.40.4, 2.41.3, 2.42.4, 2.43.6 and 2 more
NVD
Severity
Low 2.1
CVSS 4.0 from GitHub_M
Exploit odds (EPSS)
0.65% in 30 days
higher than 52% of CVEs; FIRST, December 3, 2026
Free for up to 3 items: a weekly email, and an alert the day CISA lists one as exploited. We email you once to confirm. More about the watch

What is 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.

From the CVE record by GitHub_M, last updated November 3, 2025, 20:45 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
gitgit<= 2.40.3
>= 2.41.0, <= 2.41.2
>= 2.42.0, <= 2.42.3
>= 2.43.0, <= 2.43.5
>= 2.44.0, <= 2.44.2
>= 2.45.0, <= 2.45.2
>= 2.46.0, <= 2.46.2
>= 2.47.0, < 2.47.2
= 2.48.0

As the CVE record by GitHub_M states it, last updated November 3, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
debiandebian linux11.0operating system
gitgitbefore 2.40.4application
gitgitfrom 2.41.0 before 2.41.3application
gitgitfrom 2.42.0 before 2.42.4application
gitgitfrom 2.43.0 before 2.43.6application
gitgitfrom 2.44.3 before 2.44.3application
gitgitfrom 2.45.3 before 2.45.3application
gitgitfrom 2.46.3 before 2.46.3application
gitgitfrom 2.47.0 before 2.47.2application
gitgit2.48.0application

NVD analysis (status Analyzed), last modified June 17, 2026, 08:04 UTC.

How severe is CVE-2024-50349?

ScoreVersionVectorSource
Low 2.1CVSS 4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:NGitHub_M
Medium 4.7CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2024-50349 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: no; technical impact: partial (CISA ADP, January 14, 2025)
EPSS
0.65% probability of exploitation activity in the next 30 days, percentile 52.5 (FIRST EPSS, scores of December 3, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
October 22, 2024
Published
January 14, 2025, 18:43 UTC
CVE record updated
November 3, 2025, 20:45 UTC by GitHub_M
NVD
Analyzed, last modified June 17, 2026, 08:04 UTC
Last checked
CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:23 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 2026
Official record
cve.org · NVD

What other CVEs affect git?

Every CVE in git

Questions about CVE-2024-50349

Is CVE-2024-50349 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.65% chance of exploitation activity in the next 30 days (scores of December 3, 2026).

Which versions of git are affected by CVE-2024-50349?

git <= 2.40.3, git >= 2.41.0, <= 2.41.2, git >= 2.42.0, <= 2.42.3, git >= 2.43.0, <= 2.43.5, git >= 2.44.0, <= 2.44.2, git >= 2.45.0, <= 2.45.2 and 3 more, per the CVE record by GitHub_M. The tables above give every range the sources list.

Which version fixes CVE-2024-50349?

2.40.4, 2.41.3, 2.42.4, 2.43.6, 2.44.3 and 2.45.3, per the NVD. Check the vendor's advisory before you rely on it.

How severe is CVE-2024-50349?

Low (2.1, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2024-50349?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.