Argument Injection Affecting github.com/hashicorp/go-getter package, versions >=1.5.9 <1.7.4


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (12th 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-GITHUBCOMHASHICORPGOGETTER-6663928
  • published19 Apr 2024
  • disclosed17 Apr 2024
  • creditAlessio Della Libera

Introduced: 17 Apr 2024

CVE-2024-3817  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/go-getter to version 1.7.4 or higher.

Overview

github.com/hashicorp/go-getter is a Package for downloading things from a string URL using a variety of protocols.

Affected versions of this package are vulnerable to Argument Injection when the library is performing a Git operation, it will try to clone the given repository. If a Git reference is not passed along with the Git url, go-getter will then try to check the remote repository’s HEAD reference of its default branch by passing arguments to the Git binary on the host it is executing on. An attacker may format a Git URL in order to inject additional Git arguments to the Git call.

Note: This vulnerability does not affect the go-getter/v2 branch and package.

CVSS Scores

version 3.1