Arbitrary Code Execution Affecting github.com/git-lfs/git-lfs/creds package, versions >=2.12.1 <3.1.3


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.14% (80th 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-GOLANG-GITHUBCOMGITLFSGITLFSCREDS-2769551
  • published20 Apr 2022
  • disclosed20 Apr 2022
  • creditMikhail Shcherbakov

Introduced: 20 Apr 2022

CVE-2022-24826  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade github.com/git-lfs/git-lfs/creds to version 3.1.3 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution on the Windows OS. If Git LFS operates on a malicious repository with a ..exe file as well as a file named git.exe, and git.exe is not found in PATH, the ..exe program will be executed, permitting the attacker to execute arbitrary code.

References

CVSS Base Scores

version 3.1