CVE-2024-6257
JSON

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 packageVersionsReported by
HashiCorp Shared librarybefore 1.7.4CVE List
hashicorp shared_librarybefore 1.7.4CVE List
github.com/hashicorp/go-getter (Go)before 1.7.5GitHub Advisory Database, Go Vulnerability Database
hashicorp go-getterbefore 1.7.5NVD

All scores

HashiCorp8.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
GitHub8.4high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-77

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

SourceRecordLicence
CVE ListCVE-2024-6257 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-xfhp-jf8p-mh5w changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2948 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-6257 changed 2026-06-17Public domain