Untrusted Search Path Affecting git-for-windows/git package, versions [,2.39.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th 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-3323294
  • published16 Feb 2023
  • disclosed16 Feb 2023
  • creditUnknown

Introduced: 16 Feb 2023

CVE-2023-23618  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Untrusted Search Path such that when gitk is run on Windows, it potentially runs executables from the current directory inadvertently, which can be exploited with some social engineering to trick users into running untrusted code.

Workaround

Users who are unable to upgrade should avoid using gitk (or Git GUI's "Visualize History" functionality) in clones of untrusted repositories.

CVSS Base Scores

version 3.1