Uncontrolled Search Path Element Affecting git/git package, versions [,2.35.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (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-GITGIT-2636050
  • published13 Apr 2022
  • disclosed13 Apr 2022
  • creditycdxsb

Introduced: 13 Apr 2022

CVE-2022-24765  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade git/git to version 2.35.2 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Search Path Element where untrusted parties can create the folder C:\.git, which can be picked up by Git operations, run outside a repository while searching for a Git directory. Git will then respect any config in said Git directory.

Note: This vulnerability affects users working on multi-user machines where untrusted parties write access to the same hard disk.

CVSS Scores

version 3.1