CVE-2024-3817 HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches
Attackers can inject arguments into Git commands via remote branch discovery, potentially leading to arbitrary code execution in applications using the library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-3817?
CVE-2024-3817 is a critical command injection vulnerability in HashiCorp Shared library, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-88
Which versions are affected by CVE-2024-3817?
3 open source packages ship an affected version, including github.com/hashicorp/go-getter. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/hashicorp/go-getter Go | From 1.5.9 | 1.7.4 |
github.com/hashicorp/go-getter Go | From 1.5.9 | 1.7.4 |
github.com/hashicorp/go-getter Go | From 1.5.9 | 1.7.4 |
Products include Hashicorp Go-Getter.
How do I fix CVE-2024-3817?
Upgrade github.com/hashicorp/go-getter to 1.7.4 or later.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2024-3817 being exploited?
There is no known exploitation of CVE-2024-3817 in the wild and no public exploit code.
Other vulnerabilities in HashiCorp Shared library
Sources
Also known as AZL-39939, BELL-CVE-2024-3817, DEBIAN-CVE-2024-3817, GHSA-q64h-39hv-4cf7, GO-2024-2800, UBUNTU-CVE-2024-3817.