Loading HuntDB...

GHSA-q64h-39hv-4cf7

GitHub Security Advisory

HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches

✓ GitHub Reviewed CRITICAL Has CVE

Advisory Details

When go-getter is performing a Git operation, go-getter 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.

Consumers of the go-getter library should evaluate the risk associated with these issues in the context of their go-getter usage and upgrade go-getter to 1.7.4 or later.

Affected Packages

Go github.com/hashicorp/go-getter
Affected versions: 1.5.9 (fixed in 1.7.4)

Related CVEs

Key Information

GHSA ID
GHSA-q64h-39hv-4cf7
Published
April 17, 2024 9:30 PM
Last Modified
April 18, 2024 1:45 PM
CVSS Score
9.0 /10
Primary Ecosystem
Go
Primary Package
github.com/hashicorp/go-getter
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 6, 2025 6:30 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.