# CVE-2024-6257: GO-2024-2948 - Code Execution on Git update in github.com/hashicorp/go-getter

Source: https://junglewise.ai/threats/cve-2024-6257-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-06-28  
License: CC BY 4.0 with a link back

CVE-2024-6257 · Severity: low · CVSS 3.1 · Published 2024-06-28

Code Execution on Git update in github.com/hashicorp/go-getter

Technologies: [github.com/hashicorp/go-getter (Go)](https://junglewise.ai/threats/technologies/github-com-hashicorp-go-getter). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2024-6257 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-6257 being exploited in the wild.

**How severe is CVE-2024-6257?** Low severity, with a CVSS score of 3.1, published 28 June 2024.

**Which products and versions are affected?** github.com/hashicorp/go-getter (Go) SEMVER:introduced=0,fixed=1.7.5.

**Is there a fix for CVE-2024-6257?** Yes. github.com/hashicorp/go-getter (Go): upgrade to 1.7.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-6257?** Check whether you run github.com/hashicorp/go-getter (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/hashicorp/go-getter (Go): upgrade to 1.7.5 or later

  ```sh
  go get github.com/hashicorp/go-getter@v1.7.5
  ```


## Affected products

- github.com/hashicorp/go-getter (Go) SEMVER:introduced=0,fixed=1.7.5

## Identifiers

- CVE-2024-6257
- GHSA-xfhp-jf8p-mh5w
- GO-2024-2948

## Related threats

- [HashiCorp go-getter arbitrary file read via argument injection in Git URLs](https://junglewise.ai/threats/cve-2026-4660-hashicorp-go-getter-arbitrary-file-read-via-argument-injection-in)
- [GO-2025-3892 - HashiCorp go-getter Vulnerable to Symlink Attacks in github.com/hashicorp/go-getter](https://junglewise.ai/threats/cve-2025-8959-hashicorp-go-getter-vulnerable-to-symlink-attacks)
- [GO-2024-2800 - Argument injection when fetching remote default Git branches in github.com/hashicorp/go-getter](https://junglewise.ai/threats/cve-2024-3817-hashicorp-go-getter-vulnerable-to-argument-injection-when-fetching)
- [GO-2023-1578 - Denial of service in github.com/hashicorp/go-getter/v2](https://junglewise.ai/threats/cve-2023-0475-data-amplification-in-hashicorp-go-getter)
- [GO-2022-0438 - Exposure of sensitive information via log file in github.com/hashicorp/go-getter](https://junglewise.ai/threats/cve-2022-29810-insertion-of-sensitive-information-into-log-file-in-hashicorp-go)
