Argument injection when fetching remote default Git branches in github.com/hashicorp/go-getter
Overview
Source
ID
GO-2024-2800
Aliases
CVE-2024-3817
GHSA-q64h-39hv-4cf7
Affected package
Description
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.
Impact
Reference links
Summary
2.08k
Total packages affected
help_outline
Packages with at least one version that is affected by the advisory or has an affected dependency.
480
Packages with a known fix
help_outline
Packages with versions affected by the advisory that have a greater version that is not affected.
0.16%
Total ecosystem affected
help_outline
The proportion of packages in the ecosystem that are affected by the advisory (fixed or not).
Affected Version: Introduced: 1.5.9, Fixed: 1.7.4
Patched/Unaffected