Command Injection Affecting github.com/hashicorp/go-getter package, versions <1.7.5


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.97% (58th 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-7371669
  • published26 Jun 2024
  • disclosed25 Jun 2024
  • creditKraken Security Labs

Introduced: 25 Jun 2024

CVE-2024-6257  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade github.com/hashicorp/go-getter to version 1.7.5 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 Command Injection during a git update operation. The git config may be modified to pull from an arbitrary repository after initialization. A user with access to the config who modifies it after the cloning step can trigger code execution.

CVSS Base Scores

version 4.0
version 3.1