Untrusted Search Path Affecting git/git package, versions [,2.19.2)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
1.6% (88th 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-2372022
  • published26 Jan 2022
  • disclosed23 Nov 2018
  • creditUnknown

Introduced: 23 Nov 2018

CVE-2018-19486  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade git/git to version 2.19.2 or higher.

Overview

Affected versions of this package are vulnerable to Untrusted Search Path. Git before 2.19.2 on Linux and UNIX executes commands from the current working directory (as if '.' were at the end of $PATH) in certain cases involving the run_command() API and run-command.c, because there was a dangerous change from execvp to execv during 2017.

CVSS Scores

version 3.1