4.7

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

Analyzed
AliasesALPINE-CVE-2024-50349RHSA-2025:19601UBUNTU-CVE-2024-50349
Published 14-01-2025Last modified 03-11-2025

Vulnerability summary

CVE-2024-50349 is a medium (CVSS 4.7) Improper Encoding or Escaping of Output vulnerability in debian debian_linux. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 52.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 2.1, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.7/10
010
Medium · v3.1 (NVD)
EPSS score
0.65%
0%100%
Low · -0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 15 · Related 11

Timeline

  1. 14-01-2025
    PublishedVulnerability first disclosed.
  2. 03-11-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

10 scores · 8 sources · 2 versions

EPSS trend

Probability

0.65%

Chance of exploitation in the next 30 days

Percentile

52%

Versus all other CVEs

30-day change

Decrease -0.01 pp

From 0.65% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Redhat20 products
  • git< 0:2.43.5-1.el9_4.3
  • git-all< 0:2.43.5-1.el9_4.3
  • git-core< 0:2.43.5-1.el9_4.3
  • git-core-debuginfo< 0:2.43.5-1.el9_4.3
  • git-core-doc< 0:2.43.5-1.el9_4.3
Debian2 products
Alpine1 product
  • git≥ 2.41.0, < 2.40.4-r0 | ≥ 2.41.0, < 2.43.6-r0 | ≥ 2.41.0, < 2.45.3-r0 | ≥ 2.41.0, < 2.47.2-r0 | ≥ 2.41.0, < 2.48.1-r0 | < 2.40.4-r0 | ≥ 2.43.0, < 2.43.6-r0 | ≥ 2.44.3, < 2.45.3-r0 | ≥ 2.47.0, < 2.47.2-r0 | ≥ 2.47.0, < 2.48.1-r0
Chainguard1 product
  • git< 2.48.1-r0
Git1 product
  • 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.48.0 | < 2.40.4 | ≥ 2.41.0, < 2.41.3 | ≥ 2.42.0, < 2.42.4 | ≥ 2.43.0, < 2.43.6 | ≥ 2.44.3, < 2.44.3 | ≥ 2.45.3, < 2.45.3 | ≥ 2.46.3, < 2.46.3 | ≥ 2.47.0, < 2.47.2 | 2.48.0
Opensuse1 product
  • git&distro=openSUSE Tumbleweed< 2.48.1-1.1
Ubuntu1 product
  • git< 1:2.7.4-0ubuntu1.10+esm13 | < 1:2.17.1-1ubuntu0.18+esm6 | < 1:2.25.1-1ubuntu3.14 | < 1:2.34.1-1ubuntu1.12 | < 1:2.43.0-1ubuntu7.2
Wolfi1 product
  • git< 2.48.1-r0

8 vendors · 28 products

References

21 links
Show all 21 references