{"id":"CVE-2024-6257","aliases":["CVE-2024-6257","GHSA-xfhp-jf8p-mh5w","GO-2024-2948"],"related":["CGA-2x8c-j6qq-9ch3"],"kind":"vulnerability","state":"published","title":"HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","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. 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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"A crafted request can execute Git update on an existing maliciously modified Git Configuration. This can potentially lead to arbitrary code execution. When performing a Git operation, the library will try to clone the given repository to a specified destination. Cloning initializes a git config in the provided destination. An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.","format":"markdown","source":"go"},{"lang":"es","text":"Se puede obligar a la librería de HashiCorp a ejecutar una actualización de Git en una configuración de Git existente modificada maliciosamente, lo que podría conducir a la ejecución de código arbitrario.","source":"nvd"}],"published":"2024-06-25T16:31:03.882Z","modified":"2026-09-10T03:50:16.139Z","severity":{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-77"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.7.4","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":"semver","introduced":"0","fixed":"1.7.4","status":"affected"}],"vendor":"hashicorp","product":"shared_library","cpe":"cpe:2.3:a:hashicorp:shared_library:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.5"}],"ecosystem":"Go","package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.7.5"}],"ecosystem":"Go","package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"go"},{"ranges":[{"status":"affected","fixed":"1.7.5"}],"vendor":"hashicorp","product":"go-getter","cpe":"cpe:2.3:a:hashicorp:go-getter:*:*:*:*:*:*:*:*","source":"nvd"}],"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":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6257","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-xfhp-jf8p-mh5w","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/hashicorp/go-getter","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"HashiCorp","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-06-25T17:53:59.411Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6257","url":"https://www.cve.org/CVERecord?id=CVE-2024-6257","licence":"CVE Terms of Use","modified":"2024-08-01T21:33:05.245Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xfhp-jf8p-mh5w","url":"https://github.com/advisories/GHSA-xfhp-jf8p-mh5w","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.139Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2948","url":"https://pkg.go.dev/vuln/GO-2024-2948","licence":"CC-BY-4.0","modified":"2026-02-04T02:53:53.287Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6257","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6257","licence":"Public domain","modified":"2026-06-17T08:17:38.727Z"}],"updatedAt":"2026-11-25T22:58:42.231Z","epss":{"score":0.00981,"percentile":0.63247,"date":"2026-12-01T12:00:22.000Z"}}