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.
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?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| git | git | <= 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?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| debian | debian linux | 11.0 | operating system |
| git | git | before 2.40.4 | application |
| git | git | from 2.41.0 before 2.41.3 | application |
| git | git | from 2.42.0 before 2.42.4 | application |
| git | git | from 2.43.0 before 2.43.6 | application |
| git | git | from 2.44.3 before 2.44.3 | application |
| git | git | from 2.45.3 before 2.45.3 | application |
| git | git | from 2.46.3 before 2.46.3 | application |
| git | git | from 2.47.0 before 2.47.2 | application |
| git | git | 2.48.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:04 UTC.
How severe is CVE-2024-50349?
| Score | Version | Vector | Source |
|---|---|---|---|
| Low 2.1 | CVSS 4.0 | 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 | GitHub_M |
| Medium 4.7 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N | NVD |
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?
- CWE-116 Improper Encoding or Escaping of Output
- CWE-147 Improper Neutralization of Input Terminators
- CWE-150 Improper Neutralization of Escape, Meta, or Control Sequences
Where are the vendor advisories and references?
- https://github.com/git/git/security/advisories/GHSA-hmg8-h7qf-7cxr x_refsource_CONFIRM
- https://github.com/git/git/commit/7725b8100ffbbff2750ee4d61a0fcc1f53a086e8 x_refsource_MISC
- https://github.com/git/git/commit/c903985bf7e772e2d08275c1a95c8a55ab011577 x_refsource_MISC
- https://lists.debian.org/debian-lts-announce/2025/01/msg00025.html
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?
- Jul 8, 2025CVE-2025-48384 git: interpretation Conflict exploited
- Nov 16, 2026CVE-2026-111760 git: link following (a symlink lets an attacker reach other files)
- Nov 12, 2026CVE-2026-114467 Git: out-of-bounds write (memory corruption)
- Nov 12, 2026CVE-2026-114466 Git: insufficient Granularity of Access Control
- Nov 12, 2026CVE-2026-114469 Git: out-of-bounds read
- Nov 12, 2026CVE-2026-113408 Git: path traversal (reading or writing files outside the intended folder)
- Nov 10, 2026CVE-2026-105437 Git: heap buffer overflow
- Jul 8, 2025CVE-2025-48385 git: argument injection
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.