{"id":"CVE-2024-6257","aliases":["GHSA-xfhp-jf8p-mh5w","GO-2024-2948"],"url":"https://o3.security/vulnerability/CVE-2024-6257","summary":"HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation","details":"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. When go-getter is performing a Git operation, go-getter will try to clone the given repository in a specified destination. Cloning initializes a git config to the provided destination and if the repository needs to get updated go-getter will pull the new changes .\n\nAn attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.","published":"2024-06-25T16:31:03.882Z","modified":"2026-08-12T03:51:11.557709441Z","cvss":{"score":8.4,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/hashicorp/go-getter","fixedVersion":"1.7.5"}],"fix":{"url":"https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9","label":"hashicorp/go-getter@268c11c"},"references":[{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2024-13-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via-git-config-manipulation/68081"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6257.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6257"},{"type":"PACKAGE","url":"https://github.com/hashicorp/go-getter"},{"type":"WEB","url":"https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xfhp-jf8p-mh5w"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:11.557709441Z"}}