CVE-2023-23946: Path Traversal in Git git apply
- Vendor
- Git-Scm
CVE-2023-23946 is a path-traversal vulnerability in Git's git apply command affecting versions before 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. A crafted patch can create a symbolic link and subsequently create or overwrite a file through that link outside the repository working tree. The write occurs with the filesystem permissions of the user executing git apply.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker can cause git apply to overwrite filesystem paths outside the working tree that are writable by the user applying the crafted patch. This can compromise the integrity of user-accessible files.
Mitigation
If you can’t patch tonight, do this now.
Before applying untrusted patches, inspect them with git apply --stat. Do not apply a patch that creates a symbolic link and then creates a file beyond that symbolic link.
Remediation
Patch, then assume compromise.
Upgrade Git to version 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, or 2.30.8, as appropriate for the maintained release branch.
Exploits
2 exploits validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-23946 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2023-23946 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2023-23946?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-23946, the earliest disclosed Sep 7, 2023.
- Is there a patch for CVE-2023-23946?
- Upgrade Git to version 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, or 2.30.8, as appropriate for the maintained release branch.
- What products are affected by CVE-2023-23946?
- Git-Scm Git.
- How severe is CVE-2023-23946?
- CVE-2023-23946 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 1.1% (67th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.