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


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (11th 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 ID SNYK-GOLANG-GITHUBCOMHASHICORPGOGETTER-7371669
  • published 26 Jun 2024
  • disclosed 25 Jun 2024
  • credit Kraken Security Labs

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 Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
7.1 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    High
  • User Interaction (UI)
    Passive
  • Confidentiality (VC)
    None
  • Integrity (VI)
    High
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High