{"schemaVersion":3,"id":"CVE-2023-23946","aliases":["ALPINE-CVE-2023-23946","UBUNTU-CVE-2023-23946","DEBIAN-CVE-2023-23946","CGA-973m-xjh9-w8h6","CGA-wvx4-x57w-xwjg"],"status":"published","duplicateOf":null,"title":null,"description":"Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36.5, 2.35.7, 2.34.7, 2.33.7, 2.32.6, 2.31.7, and 2.30.8. By feeding a crafted input to `git apply`, a path outside the working tree can be overwritten as the user who is running `git apply`. A fix has been prepared and will appear in v2.39.2, v2.38.4, v2.37.6, v2.36.5, v2.35.7, v2.34.7, v2.33.7, v2.32.6, v2.31.7, and v2.30.8. As a workaround, use `git apply --stat` to inspect a patch before applying; avoid applying one that creates a symbolic link and then creates a file beyond the symbolic link.","dates":{"published":"2023-02-14T19:48:00.554Z","modified":"2026-10-08T21:14:08.741Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","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":6.2,"severity":"medium","vector":"CVSS:3.1/AV:L/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":6.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":6.4,"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":6.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":6.4,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","exploitability":6.4,"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.01135,"percentile":0.66003,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.00899999999999998,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01144},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01135,"percentile":0.66003}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01144,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01135,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01135,"percentile":0.66003}]},"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.6-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.34.7-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.36.5-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.38.4-r0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.39.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.31.0, < 2.32.6-r0 | ≥ 2.31.0, < 2.34.7-r0 | ≥ 2.31.0, < 2.36.5-r0 | ≥ 2.31.0, < 2.38.4-r0 | ≥ 2.31.0, < 2.39.2-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.39.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.39.2-r1","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.39.2-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.39.2-r1","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.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.39.2-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+esm5","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.17.1-1ubuntu0.16","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.25.1-1ubuntu3.10","noFixRecorded":false,"fixedIn":null},{"text":"< 1:2.34.1-1ubuntu1.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1:2.7.4-0ubuntu1.10+esm5 | < 1:2.17.1-1ubuntu0.16 | < 1:2.25.1-1ubuntu3.10 | < 1:2.34.1-1ubuntu1.8","eol":null,"hubHref":null},{"vendor":"git-scm","product":"git","name":"git","label":"git","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.30.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.31.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.32.0, < 2.32.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.33.0, < 2.33.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.34.0, < 2.34.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.35.0, < 2.35.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.36.0, < 2.36.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.37.0, < 2.37.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.38.0, < 2.38.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.39.0, < 2.39.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.30.8 | ≥ 2.31.0, < 2.31.7 | ≥ 2.32.0, < 2.32.6 | ≥ 2.33.0, < 2.33.7 | ≥ 2.34.0, < 2.34.7 | ≥ 2.35.0, < 2.35.7 | ≥ 2.36.0, < 2.36.5 | ≥ 2.37.0, < 2.37.6 | ≥ 2.38.0, < 2.38.4 | ≥ 2.39.0, < 2.39.2","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.39.0, < 2.39.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.38.0, < 2.38.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.37.0, < 2.37.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.36.0, < 2.36.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.35.0, < 2.35.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.34.0, < 2.34.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.33.0, < 2.33.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.32.0, < 2.32.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.31.0, < 2.31.7","noFixRecorded":false,"fixedIn":null},{"text":"< 2.30.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.39.0, < 2.39.2 | ≥ 2.38.0, < 2.38.4 | ≥ 2.37.0, < 2.37.6 | ≥ 2.36.0, < 2.36.5 | ≥ 2.35.0, < 2.35.7 | ≥ 2.34.0, < 2.34.7 | ≥ 2.33.0, < 2.33.7 | ≥ 2.32.0, < 2.32.6 | ≥ 2.31.0, < 2.31.7 | < 2.30.8","eol":null,"hubHref":"/vendor/git/git"}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/git/git/security/advisories/GHSA-r87m-v37r-cwfh","label":"github.com/git/git/security/advisories/GHSA-r87m-v37r-cwfh","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","Vendor Advisory"]},{"url":"https://github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd","label":"github.com/git/git/commit/c867e4fa180bec4750e9b54eb10f459030dbebfd","hostname":"github.com","tags":["X Refsource MISC","FIX","Patch"]},{"url":"https://security.gentoo.org/glsa/202312-15","label":"security.gentoo.org/glsa/202312-15","hostname":"security.gentoo.org","tags":["Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2023-23946","label":"security.alpinelinux.org/vuln/CVE-2023-23946","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-23946","label":"ubuntu.com/security/CVE-2023-23946","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5871-1","label":"ubuntu.com/security/notices/USN-5871-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-23946","label":"www.cve.org/CVERecord?id=CVE-2023-23946","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-23946","label":"security-tracker.debian.org/tracker/CVE-2023-23946","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23946.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23946.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-23946","label":"nvd.nist.gov/vuln/detail/CVE-2023-23946","hostname":"nvd.nist.gov","tags":["Advisory","Oval"]}],"lineage":{"upstream":[],"downstream":["DLA-3338-1","DSA-5357-1","MGASA-2023-0066","OPENSUSE-SU-2024:12698-1","RHSA-2023:3245","RHSA-2023:3246","RHSA-2024:0407","SUSE-SU-2023:0418-1","SUSE-SU-2023:0426-1","SUSE-SU-2023:0430-1","USN-5871-1"],"duplicates":[],"related":["CGA-8PCC-F78R-Q8H2","CGA-MWR5-CFGM-MV44","OPENSUSE-SU-2024:12698-1","SUSE-SU-2023:0418-1","SUSE-SU-2023:0426-1","SUSE-SU-2023:0430-1","USN-5871-1"]},"timeline":[{"kind":"published","date":"2023-02-14T19:48:00.554Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-08T21:14:08.741Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:09:50.287Z","stale":false,"partial":false}}