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

EcosystemPackageFixed inAdvisory
Debian:12golang-github-hashicorp-go-getterno fix listedDEBIAN-CVE-2024-6257
Debian:14golang-github-hashicorp-go-getter1.8.9-1DEBIAN-CVE-2024-6257
Gogithub.com/hashicorp/go-getter1.7.5GHSA-xfhp-jf8p-mh5w
Gogithub.com/hashicorp/go-getter1.7.5GO-2024-2948
Ubuntu:22.04:LTSgolang-github-hashicorp-go-getterno fix listedUBUNTU-CVE-2024-6257
Ubuntu:24.04:LTSgolang-github-hashicorp-go-getterno fix listedUBUNTU-CVE-2024-6257
Ubuntu:25.10golang-github-hashicorp-go-getterno fix listedUBUNTU-CVE-2024-6257
Ubuntu:22.04:LTSgolang-github-jesseduffield-go-getterno fix listedUBUNTU-CVE-2024-6257
Ubuntu:24.04:LTSgolang-github-jesseduffield-go-getterno fix listedUBUNTU-CVE-2024-6257

Affected products (as reported)

VendorProductVersions
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

References