{"id":"CVE-2024-3817","published":"2024-04-17T19:37:25Z","modified":"2024-08-01T20:20:01Z","title":"HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches","vendor":"HashiCorp","product":"Shared library","tier":"tail","description":{"text":"HashiCorp’s go-getter library is vulnerable to argument injection when executing Git to discover remote branches. \n\nThis vulnerability does not affect the go-getter/v2 branch and package.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01329,"percentile":0.71744,"provenance":"source"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"references":[{"url":"https://discuss.hashicorp.com/t/hcsec-2024-09-hashicorp-go-getter-vulnerable-to-argument-injection-when-fetching-remote-default-git-branches/66040","tags":[]}],"priority":{"score":21.2,"factors":[{"name":"EPSS percentile","points":14.35},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Shared library","versions":[">= 1.5.9, < 1.7.3"]}],"capec":[{"id":"CAPEC-248","name":"Command Injection"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-23T16:09:26.407809Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/go-getter","vulnerableRanges":[">=1.5.9, <1.7.4"],"patched":["1.7.4"],"from":["GHSA-q64h-39hv-4cf7","GO-2024-2800"],"provenance":"source"}],"summary":{"text":"The HashiCorp go-getter shared library contains an argument injection flaw in the code path that runs Git to discover a remote repository's default branch. The go-getter/v2 branch and package are not affected. An attacker who can supply a crafted repository reference that go-getter processes can inject arguments into the Git command it executes, and the attack needs no authentication or user interaction, only network reachability to the fetch operation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:56:51Z"},"euvd":{"id":"EUVD-2024-1274","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hashicorp-shared-library-cve-2022-26945","parents":[{"from":"CVE-2022-26945","to":"CVE-2024-3817","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-3817","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-3817","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-3817","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,"link":{"from":"CVE-2023-0475","to":"CVE-2024-3817","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/hashicorp/go-getter","fromFixed":"1.7.0","toFixed":"1.7.4","daysApart":426}]}},{"cve":"CVE-2024-3817","published":"2024-04-17","fixed":"1.7.4","kev":false},{"cve":"CVE-2024-6257","published":"2024-06-25","fixed":"1.7.5","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-2025-8959","published":"2025-08-15","fixed":"1.7.9","kev":false},{"cve":"CVE-2026-4660","published":"2026-04-09","fixed":"1.8.6","kev":false}],"package":"Go:github.com/hashicorp/go-getter"}}