Remote Code Execution (RCE) Affecting git-for-windows/git package, versions [,2.39.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.86% (74th 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-3244948
  • published23 Jan 2023
  • disclosed23 Jan 2023
  • creditUnknown

Introduced: 23 Jan 2023

CVE-2022-41953  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

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

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE). Due to the insecure design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an aspell.exe in their top-level directory, which is executed by Git GUI without giving the user a chance to inspect it.

CVSS Base Scores

version 3.1