{
  "threat_severity" : "Important",
  "public_date" : "2023-04-25T00:00:00Z",
  "bugzilla" : {
    "description" : "git: arbitrary configuration injection when renaming or deleting a section from a configuration file",
    "id" : "2188338",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2188338"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.8",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
    "status" : "verified"
  },
  "details" : [ "Git is a revision control system. Prior to versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1, a specially crafted `.gitmodules` file with submodule URLs that are longer than 1024 characters can used to exploit a bug in `config.c::git_config_copy_or_rename_section_in_file()`. This bug can be used to inject arbitrary configuration into a user's `$GIT_DIR/config` when attempting to remove the configuration section associated with that submodule. When the attacker injects configuration values which specify executables to run (such as `core.pager`, `core.editor`, `core.sshCommand`, etc.) this can lead to a remote code execution. A fix A fix is available in versions 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8, 2.35.8, 2.36.6, 2.37.7, 2.38.5, 2.39.3, and 2.40.1. As a workaround, avoid running `git submodule deinit` on untrusted repositories or without prior inspection of any submodule sections in `$GIT_DIR/config`.", "A vulnerability was found in Git. This security flaw occurs when renaming or deleting a section from a configuration file, where certain malicious configuration values may be misinterpreted as the beginning of a new configuration section. This flaw leads to arbitrary configuration injection." ],
  "affected_release" : [ {
    "product_name" : "Red Hat Enterprise Linux 7",
    "release_date" : "2023-05-23T00:00:00Z",
    "advisory" : "RHSA-2023:3263",
    "cpe" : "cpe:/o:redhat:enterprise_linux:7",
    "package" : "git-0:1.8.3.1-25.el7_9"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8",
    "release_date" : "2023-05-22T00:00:00Z",
    "advisory" : "RHSA-2023:3246",
    "cpe" : "cpe:/a:redhat:enterprise_linux:8",
    "package" : "git-0:2.39.3-1.el8_8"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.1 Update Services for SAP Solutions",
    "release_date" : "2023-05-17T00:00:00Z",
    "advisory" : "RHSA-2023:3192",
    "cpe" : "cpe:/a:redhat:rhel_e4s:8.1",
    "package" : "git-0:2.18.4-3.el8_1"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.2 Advanced Update Support",
    "release_date" : "2023-05-31T00:00:00Z",
    "advisory" : "RHSA-2023:3382",
    "cpe" : "cpe:/a:redhat:rhel_aus:8.2",
    "package" : "git-0:2.18.4-4.el8_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.4 Extended Update Support",
    "release_date" : "2023-05-22T00:00:00Z",
    "advisory" : "RHSA-2023:3243",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.4",
    "package" : "git-0:2.27.0-4.el8_4"
  }, {
    "product_name" : "Red Hat Enterprise Linux 8.6 Extended Update Support",
    "release_date" : "2023-05-22T00:00:00Z",
    "advisory" : "RHSA-2023:3247",
    "cpe" : "cpe:/a:redhat:rhel_eus:8.6",
    "package" : "git-0:2.31.1-4.el8_6"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9",
    "release_date" : "2023-05-22T00:00:00Z",
    "advisory" : "RHSA-2023:3245",
    "cpe" : "cpe:/a:redhat:enterprise_linux:9",
    "package" : "git-0:2.39.3-1.el9_2"
  }, {
    "product_name" : "Red Hat Enterprise Linux 9.0 Extended Update Support",
    "release_date" : "2023-05-22T00:00:00Z",
    "advisory" : "RHSA-2023:3248",
    "cpe" : "cpe:/a:redhat:rhel_eus:9.0",
    "package" : "git-0:2.31.1-5.el9_0"
  }, {
    "product_name" : "Red Hat Software Collections for Red Hat Enterprise Linux 7",
    "release_date" : "2023-05-23T00:00:00Z",
    "advisory" : "RHSA-2023:3280",
    "cpe" : "cpe:/a:redhat:rhel_software_collections:3::el7",
    "package" : "rh-git227-git-0:2.27.0-6.el7"
  } ],
  "package_state" : [ {
    "product_name" : "Red Hat Enterprise Linux 6",
    "fix_state" : "Out of support scope",
    "package_name" : "git",
    "cpe" : "cpe:/o:redhat:enterprise_linux:6"
  } ],
  "references" : [ "https://www.cve.org/CVERecord?id=CVE-2023-29007\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-29007" ],
  "name" : "CVE-2023-29007",
  "csaw" : false
}