Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.8

CVE-2024-6257: go-getter may run malicious code when updating Git

CVE-2024-6257 · published 2 years ago
Summary

The go-getter library from HashiCorp can be tricked into running code from a malicious Git configuration during a Git update. This could let an attacker execute arbitrary commands on the system using the library. Update to a patched version of go-getter or avoid using it to pull from untrusted repositories.

What to do
  • Update github.com hashicorp to version 1.7.5.
  • Update bellsoft grype to version 0.114.0-r0.
  • Update hashicorp github.com/hashicorp/go-getter to version v1.7.4-aikido.1.
  • Update hashicorp rootio-github.com/hashicorp/go-getter to version v1.7.4-root.io.1.
  • Update hashicorp go-getter to version 1.7.5 or later.
Affected software
Ecosystem VendorProductAffected versions
go github.com hashicorp < 1.7.5
Fix: upgrade to 1.7.5
– hashicorp go-getter < 1.7.5
cpe:2.3:a:hashicorp:go-getter:*:*:*:*:*:*:*:*
Alpaquita:stream bellsoft grype >= 0.100.0-r0, < 0.114.0-r0
Fix: upgrade to 0.114.0-r0
Root:Go hashicorp github.com/hashicorp/go-getter < v1.7.4-aikido.1
Fix: upgrade to v1.7.4-aikido.1
Root:Go hashicorp rootio-github.com/hashicorp/go-getter < v1.7.4-root.io.1
Fix: upgrade to v1.7.4-root.io.1
Debian:12 debian golang-github-hashicorp-go-getter All versions
Original advisory text
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
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.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
8.8 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-77Command Injection
Timeline
Published25 Jun 2024
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta