Vulnerability · Published Jun 25, 2024 · Assigned by HashiCorp
CVE-2024-6257HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
High 8.4
In plain English
A high-severity command injection in Shared library from HashiCorp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.4High
Exploit odds (30 days)1.0%top 37.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | golang-github-hashicorp-go-getter | no fix listed | DEBIAN-CVE-2024-6257 |
| Debian:14 | golang-github-hashicorp-go-getter | 1.8.9-1 | DEBIAN-CVE-2024-6257 |
| Go | github.com/hashicorp/go-getter | 1.7.5 | GHSA-xfhp-jf8p-mh5w |
| Go | github.com/hashicorp/go-getter | 1.7.5 | GO-2024-2948 |
| Ubuntu:22.04:LTS | golang-github-hashicorp-go-getter | no fix listed | UBUNTU-CVE-2024-6257 |
| Ubuntu:24.04:LTS | golang-github-hashicorp-go-getter | no fix listed | UBUNTU-CVE-2024-6257 |
| Ubuntu:25.10 | golang-github-hashicorp-go-getter | no fix listed | UBUNTU-CVE-2024-6257 |
| Ubuntu:22.04:LTS | golang-github-jesseduffield-go-getter | no fix listed | UBUNTU-CVE-2024-6257 |
| Ubuntu:24.04:LTS | golang-github-jesseduffield-go-getter | no fix listed | UBUNTU-CVE-2024-6257 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| HashiCorp | Shared library | 0 – before 1.7.4 |
Weakness: CWE-77 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H