{"id":"CVE-2024-3817","aliases":["CVE-2024-3817","GHSA-q64h-39hv-4cf7","GO-2024-2800"],"related":["CGA-62m2-47v9-7v3m"],"kind":"vulnerability","state":"published","title":"HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"When go-getter is performing a Git operation, go-getter will try to clone the given repository. If a Git reference is not passed along with the Git url, go-getter will then try to check the remote repository’s HEAD reference of its default branch by passing arguments to the Git binary on the host it is executing on.\n\nAn attacker may format a Git URL in order to inject additional Git arguments to the Git call.\n\nConsumers of the go-getter library should evaluate the risk associated with these issues in the context of their go-getter usage and upgrade go-getter to 1.7.4 or later.","format":"markdown","source":"ghsa"},{"lang":"en","text":"When go-getter is performing a Git operation, go-getter will try to clone the given repository. If a Git reference is not passed along with the Git url, go-getter will then try to check the remote repository's HEAD reference of its default branch by passing arguments to the Git binary on the host it is executing on.\n\nAn attacker may format a Git URL in order to inject additional Git arguments to the Git call.","format":"markdown","source":"go"},{"lang":"es","text":"La librería de HashiCorp es vulnerable a la inyección de argumentos al ejecutar Git para descubrir ramas remotas. Esta vulnerabilidad no afecta a la rama ni al paquete go-getter/v2.","source":"nvd"}],"published":"2024-04-17T19:37:25.878Z","modified":"2026-09-10T03:49:18.813Z","severity":{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-88"],"affected":[{"ranges":[{"type":"semver","introduced":"1.5.9","fixed":"1.7.3","status":"affected"}],"vendor":"HashiCorp","product":"Shared library","repo":"https://github.com/hashicorp/go-getter","platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.5.9","fixed":"1.7.3","status":"affected"}],"vendor":"hashicorp","product":"go-getter","cpe":"cpe:2.3:a:hashicorp:go-getter:1.5.9:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.5.9","status":"affected","fixed":"1.7.4"}],"ecosystem":"Go","package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.5.9","status":"affected","fixed":"1.7.4"}],"ecosystem":"Go","package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"go"},{"ranges":[{"status":"affected","introduced":"1.5.9","fixed":"1.7.4"}],"vendor":"hashicorp","product":"go-getter","cpe":"cpe:2.3:a:hashicorp:go-getter:*:*:*:*:*:*:*:*","source":"nvd"}],"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":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3817","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/hashicorp/go-getter","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-q64h-39hv-4cf7","tags":["advisory"],"sources":["go"]}],"credits":[],"assigner":"HashiCorp","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-04-23T16:09:26.407Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3817","url":"https://www.cve.org/CVERecord?id=CVE-2024-3817","licence":"CVE Terms of Use","modified":"2024-08-01T20:20:01.607Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q64h-39hv-4cf7","url":"https://github.com/advisories/GHSA-q64h-39hv-4cf7","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.813Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2800","url":"https://pkg.go.dev/vuln/GO-2024-2800","licence":"CC-BY-4.0","modified":"2026-02-04T03:50:10.580Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3817","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3817","licence":"Public domain","modified":"2026-06-17T07:45:10.573Z"}],"updatedAt":"2026-11-25T22:58:39.425Z","epss":{"score":0.01426,"percentile":0.7322,"date":"2026-11-30T12:00:22.000Z"}}