CVE & CISA-KEV Catalog

CVE-2024-50349

MEDIUM
4.7
CVSS v3
NVD

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.

How to fix

Remediation Available
gitAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-allAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-coreAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-core-debuginfoAmazon
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-core-docAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-credential-libsecretAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-credential-libsecret-debuginfoAmazon
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-cvsAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-daemonAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-daemon-debuginfoAmazon
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-debuginfoAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-debugsourceAmazon
Fixed in:0:2.47.1-1.amzn2023.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-emailAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-guiAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-instawebAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-p4Amazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-subtreeAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
git-svnAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
gitkAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
gitwebAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
perl-GitAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
perl-Git-SVNAmazon
Fixed in:0:2.47.1-1.amzn2.0.2
Fixed in:0:2.47.1-1.amzn2023.0.2
gitDebian
Fixed in:1:2.39.5-0+deb12u2CVE-2024-50349
Fixed in:1:2.47.2-0.1CVE-2024-50349
Fixed in:1:2.47.2-0.1CVE-2024-50349
gitRed Hat / RHEL
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
gitRocky
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
git-allRocky
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.5-1.el9_4.3RHSA-2025:19601
Fixed in:0:2.47.3-1.el9_6RHSA-2025:11462
git-allRed Hat / RHEL
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.5-1.el9_4.3RHSA-2025:19601
Fixed in:0:2.47.3-1.el9_6RHSA-2025:11462
git-coreRed Hat / RHEL
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
git-coreRocky
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
git-core-debuginfoRocky
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.47.3-1.el10_0RHSA-2025:11533
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534
Fixed in:0:2.43.7-1.el8_10RHSA-2025:11534

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeChanged

Impact

ConfidentialityNone
IntegrityLow
AvailabilityNone

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N

Exploit Intelligence

0.67%probability of exploitation in 30 days
50thpercentile

Moderate risk: more likely to be exploited than 50% of all known CVEs.

References

Related Vulnerabilities

Other CWE-116 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-38475Critical9.1100%KEVFix
CVE-2022-36446Critical9.896%-Fix
CVE-2021-31806Medium6.596%-Fix
CVE-2022-30781High7.589%-Fix
CVE-2022-36099Critical9.976%-Fix
CVE-2022-36100Critical9.974%-Fix

Common questions

How do I fix CVE-2024-50349?

Published advisories record a fix for 65 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2024-50349 being actively exploited?

Not that we know of. CVE-2024-50349 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.67% is the estimated probability that it will be exploited in the next 30 days. That is higher than 50% of all scored CVEs.

How severe is CVE-2024-50349?

CVE-2024-50349 has a CVSS v3 base score of 4.7, rated medium. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2024-50349 affect?

Published advisories record a fix for git (Amazon), git-all (Amazon), git-core (Amazon), git-core-debuginfo (Amazon), and 61 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2024-50349
CVE-2024-50349 severity badge

Markdown

[![CVE-2024-50349](https://tridentstack.com/cve/badge/CVE-2024-50349.svg)](https://tridentstack.com/cve/CVE-2024-50349)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-50349"><img src="https://tridentstack.com/cve/badge/CVE-2024-50349.svg" alt="CVE-2024-50349"></a>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-06-17.