{"id":"CVE-2024-6257","published":"2024-06-25T16:31:03Z","modified":"2024-08-01T21:33:05Z","title":"HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation","vendor":"HashiCorp","product":"Shared library","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00981,"percentile":0.63097,"provenance":"source"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2024-13-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via-git-config-manipulation/68081","tags":[]}],"priority":{"score":18.5,"factors":[{"name":"EPSS percentile","points":12.62},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Shared library","versions":["< 1.7.4"]}],"capec":[{"id":"CAPEC-248","name":"Command Injection"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-06-25T17:53:59.411597Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/go-getter","vulnerableRanges":["<1.7.5"],"patched":["1.7.5"],"from":["GHSA-xfhp-jf8p-mh5w","GO-2024-2948"],"provenance":"source"}],"summary":{"text":"The flaw is in HashiCorp's go-getter, a shared library, where it can be coerced into running a Git update against an existing, maliciously modified Git configuration, which stems from improper neutralization of special elements used in a command (command injection). An attacker who can supply or alter a Git configuration that go-getter then processes can potentially achieve arbitrary code execution, but this requires high privileges, user interaction, and the ability to reach the affected component over the network.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:02Z"},"euvd":{"id":"EUVD-2024-2209","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hashicorp-shared-library-cve-2022-26945","parents":[{"from":"CVE-2022-26945","to":"CVE-2024-6257","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["get_git.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9"],"basis":"shared function","functions":["clone","findDefaultBranch"]}]},{"from":"CVE-2022-30321","to":"CVE-2024-6257","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["get_git.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9"],"basis":"shared function","functions":["clone","findDefaultBranch"]}]},{"from":"CVE-2022-30322","to":"CVE-2024-6257","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["get_git.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9"],"basis":"shared function","functions":["clone","findDefaultBranch"]}]},{"from":"CVE-2022-30323","to":"CVE-2024-6257","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["get_git.go"],"commits":["https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48","https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45","https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9"],"basis":"shared function","functions":["clone","findDefaultBranch"]}]}],"packageHistory":[{"cve":"CVE-2022-29810","published":"2022-04-27","fixed":"1.5.11","kev":false},{"cve":"CVE-2023-0475","published":"2023-02-16","fixed":"1.7.0","kev":false},{"cve":"CVE-2024-3817","published":"2024-04-17","fixed":"1.7.4","kev":false,"link":{"from":"CVE-2024-3817","to":"CVE-2024-6257","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/go-getter","fromFixed":"1.7.4","toFixed":"1.7.5","daysApart":69}]}},{"cve":"CVE-2024-6257","published":"2024-06-25","fixed":"1.7.5","kev":false},{"cve":"CVE-2025-8959","published":"2025-08-15","fixed":"1.7.9","kev":false,"link":{"from":"CVE-2024-6257","to":"CVE-2025-8959","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/go-getter","fromFixed":"1.7.5","toFixed":"1.7.9","daysApart":416},{"kind":"same-code","provenance":"machine","files":["get_git.go"],"commits":["https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9","https://github.com/hashicorp/go-getter/commit/87541b2501c00df5eaedea6acc61a2a4a4efa5b7"],"basis":"shared file"}]}},{"cve":"CVE-2026-4660","published":"2026-04-09","fixed":"1.8.6","kev":false},{"cve":"CVE-2022-26945","published":"2022-05-25","fixed":"2.1.0","kev":false}],"package":"Go:github.com/hashicorp/go-getter"}}