github.com/hashicorp/go-getter
Affected
- introduced
1.5.9, fixed1.7.4(semver)
Fixed versions
1.7.4
Fix
- Fixed version
1.7.4go get github.com/hashicorp/[email protected]
Advisory
Also known as: CVE-2024-3817, GO-2024-2800
HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches
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.
Critical Basis: The source's own band: CRITICAL
1.5.9, fixed 1.7.4 (semver)1.7.4
1.7.4go get github.com/hashicorp/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0