CVE-2024-50349
published low CVSS 4.0 · 2.1Git does not sanitize URLs when asking for credentials interactively
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2737 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-815 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | git | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| Alpine Linux | edge | git | Fixed | 2.48.1-r0 | Package fix record |
| Debian | bookworm | git | Advisory build | 1:2.39.5-0+deb12u2 | DSA-5850-1 |
| Oracle Linux | 10 | gitaarch64 | Advisory build | 0:2.47.3-1.el10_0 | ELSA-2025-11533 |
| Red Hat Enterprise Linux | RHEL-10 | gitaarch64 | Advisory build | 2.47.3-1.el10_0 | RHSA-2025:11533 |
Show 95 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-12-SP5 | gitaarch64 | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| Ubuntu | bionic | git | Advisory build | 1:2.17.1-1ubuntu0.18+esm6 | USN-7964-1 |
| AlmaLinux | 9 | git | Advisory build | 2.47.3-1.el9_6 | ALSA-2025:11462 |
| Alpine Linux | v3.18 | git | Fixed | 2.40.4-r0 | Package fix record |
| Alpine Linux | v3.19 | git | Fixed | 2.43.6-r0 | Package fix record |
| Alpine Linux | v3.20 | git | Fixed | 2.45.3-r0 | Package fix record |
| Alpine Linux | v3.21 | git | Fixed | 2.47.2-r0 | Package fix record |
| Alpine Linux | v3.22 | git | Fixed | 2.48.1-r0 | Package fix record |
| Alpine Linux | v3.23 | git | Fixed | 2.48.1-r0 | Package fix record |
| Alpine Linux | v3.24 | git | Fixed | 2.48.1-r0 | Package fix record |
| Debian | bullseye | git | Advisory build | 1:2.30.2-1+deb11u4 | DLA-4031-1 |
| Oracle Linux | 10 | gitx86_64 | Advisory build | 0:2.47.3-1.el10_0 | ELSA-2025-11533 |
| Oracle Linux | 8 | gitaarch64 | Advisory build | 0:2.43.7-1.el8_10 | ELSA-2025-11534 |
| Oracle Linux | 8 | gitx86_64 | Advisory build | 0:2.43.7-1.el8_10 | ELSA-2025-11534 |
| Oracle Linux | 9 | gitaarch64 | Advisory build | 0:2.47.3-1.el9_6 | ELSA-2025-11462 |
| Oracle Linux | 9 | gitx86_64 | Advisory build | 0:2.47.3-1.el9_6 | ELSA-2025-11462 |
| Red Hat Enterprise Linux | RHEL-10 | gitppc64le | Advisory build | 2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux | RHEL-10 | gits390x | Advisory build | 2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux | RHEL-10 | gitsrc | Advisory build | 2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux | RHEL-10 | gitx86_64 | Advisory build | 2.47.3-1.el10_0 | RHSA-2025:11533 |
| Red Hat Enterprise Linux | RHEL-8 | gitaarch64 | Advisory build | 2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux | RHEL-8 | gitppc64le | Advisory build | 2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux | RHEL-8 | gits390x | Advisory build | 2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux | RHEL-8 | gitsrc | Advisory build | 2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux | RHEL-8 | gitx86_64 | Advisory build | 2.43.7-1.el8_10 | RHSA-2025:11534 |
| Red Hat Enterprise Linux | RHEL-9 | gitaarch64 | Advisory build | 2.43.5-1.el9_4.3 | RHSA-2025:19601 |
| Red Hat Enterprise Linux | RHEL-9 | gitaarch64 | Advisory build | 2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux | RHEL-9 | gitppc64le | Advisory build | 2.43.5-1.el9_4.3 | RHSA-2025:19601 |
| Red Hat Enterprise Linux | RHEL-9 | gitppc64le | Advisory build | 2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux | RHEL-9 | gits390x | Advisory build | 2.43.5-1.el9_4.3 | RHSA-2025:19601 |
| Red Hat Enterprise Linux | RHEL-9 | gits390x | Advisory build | 2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux | RHEL-9 | gitsrc | Advisory build | 2.43.5-1.el9_4.3 | RHSA-2025:19601 |
| Red Hat Enterprise Linux | RHEL-9 | gitsrc | Advisory build | 2.47.3-1.el9_6 | RHSA-2025:11462 |
| Red Hat Enterprise Linux | RHEL-9 | gitx86_64 | Advisory build | 2.43.5-1.el9_4.3 | RHSA-2025:19601 |
| Red Hat Enterprise Linux | RHEL-9 | gitx86_64 | Advisory build | 2.47.3-1.el9_6 | RHSA-2025:11462 |
| SUSE / openSUSE | SLE-12-SP5 | gitppc64le | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| SUSE / openSUSE | SLE-12-SP5 | gits390x | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| SUSE / openSUSE | SLE-12-SP5 | gitx86_64 | Advisory build | 2.26.2-27.78.1 | SUSE-SU-2025:0197-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitaarch64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitppc64le | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP3 | gits390x | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP3 | gitx86_64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitaarch64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitppc64le | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP4 | gits390x | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP4 | gitx86_64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP5 | gitaarch64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP5 | gitppc64le | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP5 | gits390x | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP5 | gitx86_64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-15-SP6 | gitaarch64 | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | SLE-15-SP6 | gitppc64le | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | SLE-15-SP6 | gits390x | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | SLE-15-SP6 | gitx86_64 | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | SLE-5 | gitaarch64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-5 | gitppc64le | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-5 | gits390x | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | SLE-5 | gitx86_64 | Advisory build | 2.35.3-150300.10.48.1 | SUSE-SU-2025:0144-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gitaarch64 | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gitppc64le | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gits390x | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | gitx86_64 | Advisory build | 2.43.0-150600.3.9.1 | SUSE-SU-2025:0116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitaarch64 | Advisory build | 2.48.1-1.1 | OPENSUSE-SU-2025:14652-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitppc64le | Advisory build | 2.48.1-1.1 | OPENSUSE-SU-2025:14652-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gits390x | Advisory build | 2.48.1-1.1 | OPENSUSE-SU-2025:14652-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | gitx86_64 | Advisory build | 2.48.1-1.1 | OPENSUSE-SU-2025:14652-1 |
| Ubuntu | focal | git | Advisory build | 1:2.25.1-1ubuntu3.14 | USN-7207-2 |
| Ubuntu | jammy | git | Advisory build | 1:2.34.1-1ubuntu1.12 | USN-7207-1 |
| Ubuntu | noble | git | Advisory build | 1:2.43.0-1ubuntu7.2 | USN-7207-1 |
| Ubuntu | xenial | git | Advisory build | 1:2.7.4-0ubuntu1.10+esm13 | USN-7964-1 |
| AlmaLinux | 10 | git-all | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | git-core-doc | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | git-email | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | git-gui | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | git-instaweb | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | git-subtree | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | git-svn | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | gitk | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | gitweb | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | perl-Git | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 10 | perl-Git-SVN | Advisory build | 2.47.3-1.el10_0 | ALSA-2025:11533 |
| AlmaLinux | 8 | git-all | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-core | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-core-doc | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-credential-libsecret | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-daemon | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-email | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-gui | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-instaweb | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-subtree | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | git-svn | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | gitk | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | gitweb | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | perl-Git | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
| AlmaLinux | 8 | perl-Git-SVN | Advisory build | 2.43.7-1.el8_10 | ALSA-2025:11534 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.1 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| git | git | <= 2.40.3 (affected)>= 2.41.0, <= 2.41.2 (affected)>= 2.42.0, <= 2.42.3 (affected)>= 2.43.0, <= 2.43.5 (affected)>= 2.44.0, <= 2.44.2 (affected)>= 2.45.0, <= 2.45.2 (affected)>= 2.46.0, <= 2.46.2 (affected)>= 2.47.0, < 2.47.2 (affected)= 2.48.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-116 CWE-116: Improper Encoding or Escaping of Output
- CWE-147 CWE-147: Improper Neutralization of Input Terminators
- CWE-150 CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
References
4Provider assertions
3GitHub_M · cna
Git does not sanitize URLs when asking for credentials interactively
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- dc8cdeaa04525ecf2524072a101647cfbd71e308ced889fc4e2f7a52c1897492
- Ingested
- 23 Sep 2026, 08:29:53 UTC
- Source record
- Official CVE record