{"api_version":"1","generated_at":"2026-04-22T23:31:00+00:00","cve":"CVE-2023-25652","urls":{"html":"https://cve.report/CVE-2023-25652","api":"https://cve.report/api/cve/CVE-2023-25652.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2023-25652","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-25652"},"summary":{"title":"CVE-2023-25652","description":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-04-25 20:15:00","updated_at":"2023-12-27 10:15:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx","name":"https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx","refsource":"MISC","tags":[],"title":"\"git apply --reject\" partially-controlled arbitrary file write · Advisory · git/git · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2023/04/25/2","name":"http://www.openwall.com/lists/oss-security/2023/04/25/2","refsource":"MISC","tags":[],"title":"oss-security - [ANNOUNCE] Git v2.40.1 and friends","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e","name":"https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e","refsource":"MISC","tags":[],"title":"Git 2.30.9 · git/git@668f2d5 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202312-15","name":"https://security.gentoo.org/glsa/202312-15","refsource":"","tags":[],"title":"Git: Multiple Vulnerabilities (GLSA 202312-15) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BSXOGVVBJLYX26IAYX6PJSYQB36BREWH/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BSXOGVVBJLYX26IAYX6PJSYQB36BREWH/","refsource":"","tags":[],"title":"","mime":"","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902","name":"https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902","refsource":"MISC","tags":[],"title":"Merge branch 'js/apply-overwrite-rej-symlink-if-exists' into maint-2.30 · git/git@18e2b1c · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 38 Update: git-2.40.1-1.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 36 Update: git-2.40.1-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 37 Update: git-2.40.1-1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-25652","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25652","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2023","cve_id":"25652","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"37","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"25652","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"38","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"25652","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2023","cve_id":"25652","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"git-scm","cpe5":"git","cpe6":"2.40.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2023-25652","qid":"160648","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-3245)"},{"cve":"CVE-2023-25652","qid":"160649","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-3263)"},{"cve":"CVE-2023-25652","qid":"160686","title":"Oracle Enterprise Linux Security Update for git (ELSA-2023-3246)"},{"cve":"CVE-2023-25652","qid":"199315","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-6050-1)"},{"cve":"CVE-2023-25652","qid":"199538","title":"Ubuntu Security Notification for Git Vulnerabilities (USN-6050-2)"},{"cve":"CVE-2023-25652","qid":"241548","title":"Red Hat Update for git (RHSA-2023:3248)"},{"cve":"CVE-2023-25652","qid":"241549","title":"Red Hat Update for git (RHSA-2023:3246)"},{"cve":"CVE-2023-25652","qid":"241550","title":"Red Hat Update for git (RHSA-2023:3243)"},{"cve":"CVE-2023-25652","qid":"241551","title":"Red Hat Update for git (RHSA-2023:3245)"},{"cve":"CVE-2023-25652","qid":"241552","title":"Red Hat Update for git (RHSA-2023:3247)"},{"cve":"CVE-2023-25652","qid":"241554","title":"Red Hat Update for git (RHSA-2023:3263)"},{"cve":"CVE-2023-25652","qid":"241555","title":"Red Hat Update for rh-git227-git (RHSA-2023:3280)"},{"cve":"CVE-2023-25652","qid":"241596","title":"Red Hat Update for git (RHSA-2023:3192)"},{"cve":"CVE-2023-25652","qid":"257241","title":"CentOS Security Update for git (CESA-2023:3263)"},{"cve":"CVE-2023-25652","qid":"283954","title":"Fedora Security Update for git (FEDORA-2023-d84a75ea52)"},{"cve":"CVE-2023-25652","qid":"283975","title":"Fedora Security Update for git (FEDORA-2023-003e7d2867)"},{"cve":"CVE-2023-25652","qid":"284158","title":"Fedora Security Update for git (FEDORA-2023-eaf1bdd5ae)"},{"cve":"CVE-2023-25652","qid":"284757","title":"Fedora Security Update for git (FEDORA-2023-2c851f43ba)"},{"cve":"CVE-2023-25652","qid":"296101","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 59.138.2 Missing (CPUJUL2023)"},{"cve":"CVE-2023-25652","qid":"355246","title":"Amazon Linux Security Advisory for git : ALAS2023-2023-180"},{"cve":"CVE-2023-25652","qid":"355394","title":"Amazon Linux Security Advisory for git : ALAS2-2023-2072"},{"cve":"CVE-2023-25652","qid":"378536","title":"Alibaba Cloud Linux Security Update for git (ALINUX2-SA-2023:0024)"},{"cve":"CVE-2023-25652","qid":"378539","title":"Alibaba Cloud Linux Security Update for git (ALINUX3-SA-2023:0047)"},{"cve":"CVE-2023-25652","qid":"378588","title":"Microsoft Edge Based on Chromium Prior to 109.0.1518.115 Multiple Vulnerabilities"},{"cve":"CVE-2023-25652","qid":"502984","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-25652","qid":"502985","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-25652","qid":"502986","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-25652","qid":"502988","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-25652","qid":"503108","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-25652","qid":"505874","title":"Alpine Linux Security Update for git"},{"cve":"CVE-2023-25652","qid":"673170","title":"EulerOS Security Update for git (EulerOS-SA-2023-2312)"},{"cve":"CVE-2023-25652","qid":"673195","title":"EulerOS Security Update for git (EulerOS-SA-2023-2332)"},{"cve":"CVE-2023-25652","qid":"673209","title":"EulerOS Security Update for git (EulerOS-SA-2023-2354)"},{"cve":"CVE-2023-25652","qid":"673235","title":"EulerOS Security Update for git (EulerOS-SA-2023-2380)"},{"cve":"CVE-2023-25652","qid":"673529","title":"EulerOS Security Update for git (EulerOS-SA-2023-2641)"},{"cve":"CVE-2023-25652","qid":"673562","title":"EulerOS Security Update for git (EulerOS-SA-2023-3127)"},{"cve":"CVE-2023-25652","qid":"673708","title":"EulerOS Security Update for git (EulerOS-SA-2023-2683)"},{"cve":"CVE-2023-25652","qid":"691154","title":"Free Berkeley Software Distribution (FreeBSD) Security Update for git (d2c6173f-e43b-11ed-a1d7-002590f2a714)"},{"cve":"CVE-2023-25652","qid":"710816","title":"Gentoo Linux Git Multiple Vulnerabilities (GLSA 202312-15)"},{"cve":"CVE-2023-25652","qid":"753944","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2038-1)"},{"cve":"CVE-2023-25652","qid":"753957","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2062-1)"},{"cve":"CVE-2023-25652","qid":"753961","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2038-2)"},{"cve":"CVE-2023-25652","qid":"753972","title":"SUSE Enterprise Linux Security Update for git (SUSE-SU-2023:2081-1)"},{"cve":"CVE-2023-25652","qid":"92027","title":"Microsoft Visual Studio Security Updates for June 2023"},{"cve":"CVE-2023-25652","qid":"941120","title":"AlmaLinux Security Update for git (ALSA-2023:3246)"},{"cve":"CVE-2023-25652","qid":"941122","title":"AlmaLinux Security Update for git (ALSA-2023:3245)"},{"cve":"CVE-2023-25652","qid":"960936","title":"Rocky Linux Security Update for git (RLSA-2023:3246)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2023-25652","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","cweId":"CWE-22"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"git","product":{"product_data":[{"product_name":"git","version":{"version_data":[{"version_affected":"=","version_value":"< 2.30.9"},{"version_affected":"=","version_value":">= 2.31.0, < 2.31.8"},{"version_affected":"=","version_value":">= 2.32.0, < 2.32.7"},{"version_affected":"=","version_value":">= 2.33.0, < 2.33.8"},{"version_affected":"=","version_value":">= 2.34.0, < 2.34.8"},{"version_affected":"=","version_value":">= 2.35.0, < 2.35.8"},{"version_affected":"=","version_value":">= 2.36.0, < 2.36.6"},{"version_affected":"=","version_value":">= 2.37.0, < 2.37.7"},{"version_affected":"=","version_value":">= 2.38.0, < 2.38.5"},{"version_affected":"=","version_value":">= 2.39.0, < 2.39.3"},{"version_affected":"=","version_value":">= 2.40.0, < 2.40.1"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx","refsource":"MISC","name":"https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx"},{"url":"https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902","refsource":"MISC","name":"https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902"},{"url":"https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e","refsource":"MISC","name":"https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e"},{"url":"http://www.openwall.com/lists/oss-security/2023/04/25/2","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2023/04/25/2"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/"}]},"source":{"advisory":"GHSA-2hvf-7c8p-28fx","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-04-25 20:15:00","lastModifiedDate":"2023-12-27 10:15:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:2.40.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.39.0","versionEndExcluding":"2.39.3","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.38.0","versionEndExcluding":"2.38.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.37.0","versionEndExcluding":"2.37.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.36.0","versionEndExcluding":"2.36.6","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.35.0","versionEndExcluding":"2.35.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.34.0","versionEndExcluding":"2.34.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.33.0","versionEndExcluding":"2.33.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.32.0","versionEndExcluding":"2.32.7","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionStartIncluding":"2.31.0","versionEndExcluding":"2.31.8","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:git-scm:git:*:*:*:*:*:*:*:*","versionEndExcluding":"2.30.9","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}