Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2023-29012: Git for Windows is the Windows port of Git

33
Routine
HIGH 7.2UPGRADE

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

Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` would be executed silently upon running Git CMD. The problem has been patched in Git for Windows v2.40.1. As a workaround, avoid using Git CMD or, if using Git CMD, avoid starting it in an untrusted directory.

Why this priority

  • High severity

A fixed release or distro patch exists.

Risk facts

CVSS score7.2 (High)
Attack vectorLocal
Attack complexityHigh
Privileges neededHigh
User interactionRequired
EPSS exploit chance0.4% (top 68%)
CISA exploited listNo
WeaknessCWE-427
Published2023-04-25
Last modified2026-06-17
Publisher (CNA): GitHub, Inc. · Vendor: git for windows project

Share: LinkedIn · X · Reddit

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

Am I affected?

Timeline

git for windows project git for windows UPGRADE
Affected: < 2.40.1
Fixed in: 2.40.1
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy git-for-windows || rpm -q git-for-windows || git-for-windows --version
2. UPGRADE to 2.40.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade git-for-windows
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade git-for-windows
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
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-29012?

git for windows: upgrade to 2.40.1. Exact commands for each OS are on this page.

Is CVE-2023-29012 being exploited?

CVE-2023-29012 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-29012 affect?

CVE-2023-29012 affects git for windows. Severity is high (CVSS 7.2). Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` woul

How urgent is CVE-2023-29012?

Priority 33/100. High severity

Software pages

Windows vulnerabilities · 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.