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 | Vendor | Product | Affected 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.
References
- https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796a...
- https://github.com/advisories/GHSA-xfhp-jf8p-mh5w
- https://discuss.hashicorp.com/t/hcsec-2024-13-hashicorp-go-getter-vulnerable-to-... URL
- https://nvd.nist.gov/vuln/detail/CVE-2024-6257 Vendor Advisory
- https://docs.bell-sw.com/security/cves/CVE-2024-6257 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6257.j... Vendor Advisory
- https://github.com/hashicorp/go-getter Product
- https://security-tracker.debian.org/tracker/CVE-2024-6257 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Type
CWE-77Command Injection
Timeline
Published25 Jun 2024
Updated4 Nov 2026
First seen6 Mar 2026
Sources
GHSA-xfhp-jf8p-mh5w · GHSA
CVE-2024-6257 · NVD
BELL-CVE-2024-6257 · OSV
CVE-2024-6257 · OSV
DEBIAN-CVE-2024-6257 · OSV
Track software like this
Free during beta