Uncontrolled Search Path Element Affecting git-for-windows/git package, versions [,2.40.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (25th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GITFORWINDOWSGIT-5489514
  • published30 Apr 2023
  • disclosed30 Apr 2023
  • creditJohannes Schindelin, ycdxsb

Introduced: 30 Apr 2023

CVE-2023-29012  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade git-for-windows/git to version 2.40.1 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element via a maliciously-placed doskey.exe which would be executed silently upon running Git CMD. Note: Any user of Git CMD who starts the command in an untrusted directory is impacted

Workarounds

Avoid using Git CMD. If using Git CMD, avoid starting it in an untrusted directory.

References

CVSS Base Scores

version 3.1