{
  "threat_severity" : "Important",
  "public_date" : "2023-04-25T00:00:00Z",
  "bugzilla" : {
    "description" : "git: by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents",
    "id" : "2188333",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2188333"
  },
  "cvss3" : {
    "cvss3_base_score" : "7.5",
    "cvss3_scoring_vector" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
    "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, by feeding specially crafted input to `git apply --reject`, a path outside the working tree can be overwritten with partially controlled contents (corresponding to the rejected hunk(s) from the given patch). 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 using `git apply` with `--reject` when applying patches from an untrusted source. Use `git apply --stat` to inspect a patch before applying; avoid applying one that create a conflict where a link corresponding to the `*.rej` file exists.", "A vulnerability was found in Git. This security flaw occurs when feeding specially crafted input to `git apply --reject`; a path outside the working tree can be overwritten with partially controlled contents corresponding to the rejected hunk(s) from the given patch." ],
  "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-25652\nhttps://nvd.nist.gov/vuln/detail/CVE-2023-25652" ],
  "name" : "CVE-2023-25652",
  "csaw" : false
}