patchminder
Proof of concept · GitHub CVE-2023-23946

Path traversalin Git.

Published 14 Feb 2023 · Updated 8 Oct 2026 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (GitHub).

Attack code is public
Severity
Medium 6.2
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Moderate
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 1.1% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed versions listed below
In plain words

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.

What to do now
  • Upgrade git to 2.30.8, 2.31.7, 2.32.6, 2.33.7, 2.34.7 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
git
2.39.0 to before 2.39.2
2.39.2
CVE record
git
2.38.0 to before 2.38.4
2.38.4
CVE record
git
2.37.0 to before 2.37.6
2.37.6
CVE record
git
2.36.0 to before 2.36.5
2.36.5
CVE record
git
2.35.0 to before 2.35.7
2.35.7
CVE record
git
2.34.0 to before 2.34.7
2.34.7
CVE record
git
2.33.0 to before 2.33.7
2.33.7
CVE record
git
2.32.0 to before 2.32.6
2.32.6
CVE record
git
2.31.0 to before 2.31.7
2.31.7
CVE record
git
before 2.30.8
2.30.8
CVE record

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 19 Jan 2023
    CVE ID reserved by GitHub_M.
  2. 14 Feb 2023
    Published in the CVE List.
  3. 7 Sep 2023
    First public proof of concept on GitHub.
  4. 8 Oct 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (GitHub). CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
2 repositories
GitHubno warning signs foundbruno-1337/CVE-2023-23946-POC1 stars · created 7 Sep 2023Explanation and POC of the CVE-2023-23946
GitHubno warning signs foundtralsesec/CVE-2023-239460 stars · created 16 May 2026Original standalone Proof-of-Concept exploit for CVE-2023-23946 (Git path traversal via crafted patches in git-apply).

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Git vulnerabilities

Same weakness: Path traversal

All CWE-22 vulnerabilities

References
Cite this page

Patchminder. CVE-2023-23946: Path traversal in Git. https://patchminder.com/cve/cve-2023-23946/ (accessed 5 December 2026).