8.4high
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
- Severity
- 8.4high CVSS:3.1 by HashiCorp
- Exploit likelihood
- 0.98% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- HashiCorp
- Also known as
- GHSA-xfhp-jf8p-mh5wGO-2024-2948
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
| Product or package | Versions | Reported by |
|---|---|---|
| HashiCorp Shared library | before 1.7.4 | CVE List |
| hashicorp shared_library | before 1.7.4 | CVE List |
| github.com/hashicorp/go-getter (Go) | before 1.7.5 | GitHub Advisory Database, Go Vulnerability Database |
| hashicorp go-getter | before 1.7.5 | NVD |
All scores
| HashiCorp | 8.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H |
| GitHub | 8.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
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.
GitHub Advisory Database
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. When go-getter is performing a Git operation, go-getter will try to clone the given repository in a specified destination. Cloning initializes a git config to the provided destination and if the repository needs to get updated go-getter will pull the new changes .
An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.
Go Vulnerability Database
A crafted request can execute Git update on an existing maliciously modified Git Configuration. This can potentially lead to arbitrary code execution. When performing a Git operation, the library will try to clone the given repository to a specified destination. Cloning initializes a git config in the provided destination. An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.
NVD (es)
Se puede obligar a la librería de HashiCorp a ejecutar una actualización de Git en una configuración de Git existente modificada maliciosamente, lo que podría conducir a la ejecución de código arbitrario.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-6257 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xfhp-jf8p-mh5w changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2948 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-6257 changed 2026-06-17 | Public domain |