{
  "threat_severity" : "Low",
  "public_date" : "2025-01-14T18:43:42Z",
  "bugzilla" : {
    "description" : "git: Git does not sanitize URLs when asking for credentials interactively",
    "id" : "2337824",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2337824"
  },
  "cvss3" : {
    "cvss3_base_score" : "3.1",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N",
    "status" : "verified"
  },
  "cwe" : "(CWE-116|CWE-147|CWE-150)",
  "details" : [ "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.", "A flaw was found in Git. This vulnerability occurs when Git requests credentials via a terminal prompt, for example, without the use of a credential helper. During this process, Git displays the host name for which the credentials are needed, but any URL-encoded parts are decoded and displayed directly. This can allow an attacker to manipulate URLs by including ANSI escape sequences, which can be interpreted by the terminal to mislead users by tricking them into entering passwords that are redirected to malicious attacker-controlled sites." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 10",
    "release_date" : "2025-07-22T00:00:00Z",
    "advisory" : "RHSA-2025:11533",
    "cpe" : "cpe:/o:redhat:enterprise_linux:10.0",
    "package" : "git-0:2.47.3-1.el10_0"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2025-07-23T00:00:00Z",
    "advisory" : "RHSA-2025:11534",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "git-0:2.43.7-1.el8_10"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2025-07-21T00:00:00Z",
    "advisory" : "RHSA-2025:11462",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "git-0:2.47.3-1.el9_6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.4 Extended Update Support",
    "release_date" : "2025-11-04T00:00:00Z",
    "advisory" : "RHSA-2025:19601",
    "cpe" : "cpe:/a:redhat:rhel_eus:9.4",
    "package" : "git-0:2.43.5-1.el9_4.3"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Fix deferred",
    "package_name" : "git",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 7",
    "fix_state" : "Fix deferred",
    "package_name" : "git",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7"
  }, {
    "product_name" : "Red Hat Fuse 7",
    "fix_state" : "Out of support scope",
    "package_name" : "io.syndesis-syndesis-parent",
    "cpe" : "cpe:/a:redhat:jboss_fuse:7"
  }, {
    "product_name" : "Red Hat OpenShift Container Platform 4",
    "fix_state" : "Fix deferred",
    "package_name" : "rhcos",
    "cpe" : "cpe:/a:redhat:openshift:4"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2024-50349\nhttps://nvd.nist.gov/vuln/detail/CVE-2024-50349\nhttps://github.com/git/git/commit/7725b8100ffbbff2750ee4d61a0fcc1f53a086e8\nhttps://github.com/git/git/commit/c903985bf7e772e2d08275c1a95c8a55ab011577\nhttps://github.com/git/git/security/advisories/GHSA-hmg8-h7qf-7cxr" ],
  "name" : "CVE-2024-50349",
  "csaw" : false
}