{"schemaVersion":3,"id":"CVE-2023-25652","aliases":["ALPINE-CVE-2023-25652","UBUNTU-CVE-2023-25652","DEBIAN-CVE-2023-25652","CGA-5h2q-xgq9-whpr","CGA-gw72-gfp2-qq6h"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-04-25T19:17:35.315Z","modified":"2025-11-04T16:09:58.740Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.51883,"percentile":0.98943,"severity":"critical","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.51883},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.51883,"percentile":0.98943}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.51883,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.51883,"percentile":0.98943}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"alpine","product":"git","name":"git","label":"git","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/git","purlType":"apk","versions":[{"text":"≥ 2.31.0, < 2.32.7-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.34.8-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.36.6-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.38.5-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.40.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.31.0, < 2.32.7-r0 | ≥ 2.31.0, < 2.34.8-r0 | ≥ 2.31.0, < 2.36.6-r0 | ≥ 2.31.0, < 2.38.5-r0 | ≥ 2.31.0, < 2.40.1-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"git","name":"git","label":"git","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/git","purlType":"apk","versions":[{"text":"< 2.40.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.40.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"git","name":"git","label":"git","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/git","purlType":"apk","versions":[{"text":"< 2.40.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.40.1-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"git","name":"git","label":"git","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/git","purlType":"deb","versions":[{"text":"< 1:2.39.5-0+deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.40.1-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.39.5-0+deb12u1 | < 1:2.40.1-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"git","name":"git","label":"git","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/git","purlType":"deb","versions":[{"text":"< 1:2.7.4-0ubuntu1.10+esm7","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.17.1-1ubuntu0.18","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.25.1-1ubuntu3.11","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.34.1-1ubuntu1.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.7.4-0ubuntu1.10+esm7 | < 1:2.17.1-1ubuntu0.18 | < 1:2.25.1-1ubuntu3.11 | < 1:2.34.1-1ubuntu1.9","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"37","noFixRecorded":false,"fixedIn":null},{"text":"38","noFixRecorded":false,"fixedIn":null}],"versionsText":"37 | 38","eol":{"isEol":true,"eolDate":"2023-12-05T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"37","label":"37","eolFrom":"2023-12-05T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"git-scm","product":"git","name":"git","label":"git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.30.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.31.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.32.0, < 2.32.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.33.0, < 2.33.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.34.0, < 2.34.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.35.0, < 2.35.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.36.0, < 2.36.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.37.0, < 2.37.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.38.0, < 2.38.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.39.0, < 2.39.3","noFixRecorded":false,"fixedIn":null},{"text":"2.40.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.30.9 | ≥ 2.31.0, < 2.31.8 | ≥ 2.32.0, < 2.32.7 | ≥ 2.33.0, < 2.33.8 | ≥ 2.34.0, < 2.34.8 | ≥ 2.35.0, < 2.35.8 | ≥ 2.36.0, < 2.36.6 | ≥ 2.37.0, < 2.37.7 | ≥ 2.38.0, < 2.38.5 | ≥ 2.39.0, < 2.39.3 | 2.40.0","eol":null,"hubHref":"/vendor/git-scm/git"},{"vendor":"git","product":"git","name":"Git","label":"git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.30.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.31.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.32.0, < 2.32.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.33.0, < 2.33.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.34.0, < 2.34.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.35.0, < 2.35.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.36.0, < 2.36.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.37.0, < 2.37.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.38.0, < 2.38.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.39.0, < 2.39.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.40.0, < 2.40.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.30.9 | ≥ 2.31.0, < 2.31.8 | ≥ 2.32.0, < 2.32.7 | ≥ 2.33.0, < 2.33.8 | ≥ 2.34.0, < 2.34.8 | ≥ 2.35.0, < 2.35.8 | ≥ 2.36.0, < 2.36.6 | ≥ 2.37.0, < 2.37.7 | ≥ 2.38.0, < 2.38.5 | ≥ 2.39.0, < 2.39.3 | ≥ 2.40.0, < 2.40.1","eol":null,"hubHref":"/vendor/git/git"}],"affectedCount":8,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx","label":"github.com/git/git/security/advisories/GHSA-2hvf-7c8p-28fx","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","Vendor Advisory"]},{"url":"https://github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902","label":"github.com/git/git/commit/18e2b1cfc80990719275d7b08e6e50f3e8cbc902","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch"]},{"url":"https://github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e","label":"github.com/git/git/commit/668f2d53613ac8fd373926ebe219f2c29112d93e","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch"]},{"url":"http://www.openwall.com/lists/oss-security/2023/04/25/2","label":"www.openwall.com/lists/oss-security/2023/04/25/2","hostname":"www.openwall.com","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PI7FZ4NNR5S5J5K6AMVQBH2JFP6NE4L7/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/YFZWGQKB6MM5MNF2DLFTD7KS2KWPICKL/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB","Mailing List","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RKOXOAZ42HLXHXTW6JZI4L5DAIYDTYCU/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BSXOGVVBJLYX26IAYX6PJSYQB36BREWH/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["WEB"]},{"url":"https://security.gentoo.org/glsa/202312-15","label":"security.gentoo.org/glsa/202312-15","hostname":"security.gentoo.org","tags":["Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00018.html","label":"lists.debian.org/debian-lts-announce/2024/06/msg00018.html","hostname":"lists.debian.org","tags":["WEB"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00009.html","label":"lists.debian.org/debian-lts-announce/2024/09/msg00009.html","hostname":"lists.debian.org","tags":["WEB"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-25652","label":"security.alpinelinux.org/vuln/CVE-2023-25652","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-25652","label":"ubuntu.com/security/CVE-2023-25652","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6050-1","label":"ubuntu.com/security/notices/USN-6050-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6050-2","label":"ubuntu.com/security/notices/USN-6050-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-25652","label":"www.cve.org/CVERecord?id=CVE-2023-25652","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-25652","label":"security-tracker.debian.org/tracker/CVE-2023-25652","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25652.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/25xxx/CVE-2023-25652.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25652","label":"nvd.nist.gov/vuln/detail/CVE-2023-25652","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-3844-1","DLA-3867-1","DSA-5769-1","MGASA-2023-0163","OPENSUSE-SU-2024:12889-1","RHSA-2023:3192","RHSA-2023:3243","RHSA-2023:3245","RHSA-2023:3246","RHSA-2023:3247","RHSA-2023:3248","RHSA-2023:3263","RHSA-2023:3280","RHSA-2023:3382","SUSE-SU-2023:2038-1","SUSE-SU-2023:2038-2","SUSE-SU-2023:2062-1","SUSE-SU-2023:2081-1","USN-6050-1","USN-6050-2"],"duplicates":[],"related":["CGA-3C44-9P5P-FQ86","CGA-4C75-792M-X28R","OPENSUSE-SU-2024:12889-1","SUSE-SU-2023:2038-1","SUSE-SU-2023:2038-2","SUSE-SU-2023:2062-1","SUSE-SU-2023:2081-1","USN-6050-1","USN-6050-2"]},"timeline":[{"kind":"published","date":"2023-04-25T19:17:35.315Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-04T16:09:58.740Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":40,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:40:45.146Z","stale":false,"partial":false}}