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

- Severity: High 8.4 (CVSS:3.1, scored by HashiCorp) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.98%, higher than 63% of CVEs (2026-12-01)
- Published: 2024-06-25T16:31:03.882Z
- Modified: 2026-09-10T03:50:16.139Z
- Also known as: GHSA-xfhp-jf8p-mh5w, GO-2024-2948
- Related: CGA-2x8c-j6qq-9ch3
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: HashiCorp

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

(As written by CVE List.)

## Affected

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

## Every score

- HashiCorp: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://discuss.hashicorp.com/t/hcsec-2024-13-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via-git-config-manipulation/68081> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6257> (advisory)
- <https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9> (fix, web)
- <https://github.com/advisories/GHSA-xfhp-jf8p-mh5w> (advisory)
- <https://github.com/hashicorp/go-getter> (package)

## Sources

- CVE List: [CVE-2024-6257](https://www.cve.org/CVERecord?id=CVE-2024-6257), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-xfhp-jf8p-mh5w](https://github.com/advisories/GHSA-xfhp-jf8p-mh5w), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2948](https://pkg.go.dev/vuln/GO-2024-2948), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-6257](https://nvd.nist.gov/vuln/detail/CVE-2024-6257), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6257 · Whole record: https://cve.day/CVE-2024-6257.json · Rebuilt by cve.day 2026-11-25T22:58:42.231Z
