Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2023-23946: Git, a revision control system, is vulnerable to path traversal prior to versions 2.39.2, 2.38.4, 2.37.6, 2.36

38
Routine
MEDIUM 6.2UPGRADE

CVE-2023-23946 is a medium-severity flaw (CVSS 6.2) affecting git. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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 workarou

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.2 (Medium)
Attack vectorLocal
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance1.1% (top 34%)
CISA exploited listNo
WeaknessCWE-22
Published2023-02-14
Last modified2026-10-08
Publisher (CNA): GitHub, Inc. · Vendor: git-scm

Share: LinkedIn · X · Reddit

Last updated 2026-10-08 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

git-scm git UPGRADE
Affected: < 2.30.8 · >= 2.31.0 and < 2.31.7 · >= 2.32.0 and < 2.32.6 · >= 2.33.0 and < 2.33.7 · >= 2.34.0 and < 2.34.7 · >= 2.35.0 and < 2.35.7 · >= 2.36.0 and < 2.36.5 · >= 2.37.0 and < 2.37.6
Fixed in: 2.30.8, 2.31.7, 2.32.6, 2.33.7, 2.34.7, 2.35.7, 2.36.5, 2.37.6, 2.38.4, 2.39.2
Safe to downgrade to: a release before 2.31.0
1. Check installed version
apt-cache policy git || rpm -q git || git --version
2. UPGRADE to 2.30.8 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade git
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade git
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 2.31.0 (Debian / Ubuntu)
apt-cache madison git sudo apt install git=<VERSION_BEFORE_2.31.0> sudo apt-mark hold git
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list git sudo dnf downgrade git-<VERSION_BEFORE_2.31.0> sudo dnf versionlock add git
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2023-23946?

git: upgrade to 2.30.8, 2.31.7, 2.32.6, 2.33.7, 2.34.7, 2.35.7, 2.36.5, 2.37.6, 2.38.4, 2.39.2. Exact commands for each OS are on this page.

Is CVE-2023-23946 being exploited?

CVE-2023-23946 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2023-23946 affect?

CVE-2023-23946 affects git. Severity is medium (CVSS 6.2). 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

How urgent is CVE-2023-23946?

Priority 38/100. No elevated risk signals yet.

Software pages

Git vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.