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 package | Versions | Reported by |
|---|---|---|
| HashiCorp Shared library | from 1.5.9 before 1.7.3 | CVE List |
| hashicorp go-getter | from 1.5.9 before 1.7.3, from 1.5.9 before 1.7.4 | CVE List, NVD |
| github.com/hashicorp/go-getter (Go) | from 1.5.9 before 1.7.4 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| HashiCorp | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-3817 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q64h-39hv-4cf7 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2800 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-3817 changed 2026-06-17 | Public domain |