CVE-2024-50349: debian debian_linux Improper Encoding or Escaping of Output
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.67% chance of exploitation in the next 30 days, higher than 50.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 14 · Related 11Timeline
- 14-01-2025PublishedVulnerability first disclosed.
- 03-11-2025Last 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- OSV · UbuntuEcosystem advisory · calculated2.1LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
- OSV · WolfiEcosystem advisory · calculated2.1LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
- OSV · ChainguardEcosystem advisory · calculated2.1LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N
- NVDNIST2.1LowCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · AlpineEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · Red hatEcosystem advisory · calculated3.1LowCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
EPSS trend
Probability
0.67%
Chance of exploitation in the next 30 days
Percentile
51%
Versus all other CVEs
30-day change
0.00 pp
From 0.67% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
- CWE-147Improper Neutralization of Input TerminatorsThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as input terminators when they are sent to a downstream component.
- CWE-150Improper Neutralization of Escape, Meta, or Control SequencesThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.
Affected systems
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
- git< 1:2.39.5-0+deb12u2 | < 1:2.47.2-0.1
- debian_linuxEOL11.0
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
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- github.com/git/git/security/advisories/GHSA-hmg8-h7qf-7cxrX Refsource CONFIRMARTICLEAdvisoryPatchVendor Advisory
Show all 21 references
- lists.opensuse.org/archives/…Advisory