CVE-2024-3817
JSON

9.8critical

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

Severity
9.8critical CVSS:3.1 by HashiCorp
Exploit likelihood
1.43% (higher than 73% of CVEs)
Published
Last changed
Assigned by
HashiCorp
Also known as
GHSA-q64h-39hv-4cf7GO-2024-2800

Description

HashiCorp’s go-getter library is vulnerable to argument injection when executing Git to discover remote branches. This vulnerability does not affect the go-getter/v2 branch and package.

Affected

Product or packageVersionsReported by
HashiCorp Shared libraryfrom 1.5.9 before 1.7.3CVE List
hashicorp go-getterfrom 1.5.9 before 1.7.3, from 1.5.9 before 1.7.4CVE List, NVD
github.com/hashicorp/go-getter (Go)from 1.5.9 before 1.7.4GitHub Advisory Database, Go Vulnerability Database

All scores

HashiCorp9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-88

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

HashiCorp’s go-getter library is vulnerable to argument injection when executing Git to discover remote branches. This vulnerability does not affect the go-getter/v2 branch and package.

GitHub Advisory Database

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.

Go Vulnerability Database

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.

NVD (es)

La librería de HashiCorp es vulnerable a la inyección de argumentos al ejecutar Git para descubrir ramas remotas. Esta vulnerabilidad no afecta a la rama ni al paquete go-getter/v2.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2024-3817 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-q64h-39hv-4cf7 changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2800 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-3817 changed 2026-06-17Public domain