patchminder
No public exploit found CVE-2023-25652

Path traversalin Git.

Published 25 Apr 2023 · Updated 4 Nov 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

No public exploit found; not on exploited lists.

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

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.

What to do now
  • Upgrade git to 2.30.9, 2.31.8, 2.32.7, 2.33.8, 2.34.8 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
git
before 2.30.9
2.30.9
CVE record
git
2.31.0 to before 2.31.8
2.31.8
CVE record
git
2.32.0 to before 2.32.7
2.32.7
CVE record
git
2.33.0 to before 2.33.8
2.33.8
CVE record
git
2.34.0 to before 2.34.8
2.34.8
CVE record
git
2.35.0 to before 2.35.8
2.35.8
CVE record
git
2.36.0 to before 2.36.6
2.36.6
CVE record
git
2.37.0 to before 2.37.7
2.37.7
CVE record
git
2.38.0 to before 2.38.5
2.38.5
CVE record
git
2.39.0 to before 2.39.3
2.39.3
CVE record
git
2.40.0 to before 2.40.1
2.40.1
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. 9 Feb 2023
    CVE ID reserved by GitHub_M.
  2. 25 Apr 2023
    Published in the CVE List.
  3. 4 Nov 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

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-25652: Path traversal in Git. https://patchminder.com/cve/cve-2023-25652/ (accessed 5 December 2026).