{"answers":{"affected":"3 open source packages ship an affected version, including github.com/hashicorp/go-getter. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-6257 in the wild and no public exploit code.","fix":"Upgrade github.com/hashicorp/go-getter to 1.7.5 or later.","what":"CVE-2024-6257 is a high-severity command injection vulnerability in HashiCorp Shared library, published on 25 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-6257 and fix it if it is affected.\n\nWhat it is: CVE-2024-6257 is a high-severity command injection vulnerability in HashiCorp Shared library, published on 25 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-6257 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/hashicorp/go-getter (Go): affected all versions; fixed in 1.7.5\n- github.com/hashicorp/go-getter (Go): affected all versions; fixed in 1.7.5\n- github.com/hashicorp/go-getter (Go): affected all versions; fixed in 1.7.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6257/ (Markdown: https://insights.sbomify.com/CVE-2024-6257/index.md)","id":"CVE-2024-6257","markdown":"https://insights.sbomify.com/CVE-2024-6257/index.md","name":"CVE-2024-6257","record":{"aliases":["AZL-42982","BELL-CVE-2024-6257","DEBIAN-CVE-2024-6257","GHSA-xfhp-jf8p-mh5w","GO-2024-2948","ROOT-APP-GOBINARY-CVE-2024-6257","UBUNTU-CVE-2024-6257","openSUSE-SU-2024:14183-1","openSUSE-SU-2024:14190-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go getter library","requires_auth":"high_privilege","summary":"Attackers can achieve arbitrary code execution by manipulating Git configuration to trigger malicious updates in the HashiCorp go-getter library.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HashiCorp","cpe":[{"product":"go-getter","vendor":"hashicorp"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"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.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation","id":"CVE-2024-6257","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":5,"n_references":1,"next":{"headline":"BT: Missing length checks of net_buf in rfcomm_handle_data","id":"CVE-2024-6258"},"packages":[{"ecosystem":"Go","fixed":["1.7.5"],"introduced":["0"],"last_affected":[],"package":"github.com/hashicorp/go-getter","purl":null,"source":"GHSA-xfhp-jf8p-mh5w"},{"ecosystem":"Go","fixed":["1.7.5"],"introduced":["0"],"last_affected":[],"package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"GHSA-xfhp-jf8p-mh5w"},{"ecosystem":"Go","fixed":["1.7.5"],"introduced":["0"],"last_affected":[],"package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"GO-2024-2948"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.54.0-1.1"],"introduced":["0"],"last_affected":[],"package":"conftest","purl":"pkg:rpm/opensuse/conftest\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14190-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.53.0-1.1"],"introduced":["0"],"last_affected":[],"package":"trivy","purl":"pkg:rpm/opensuse/trivy\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14183-1"}],"prev":{"headline":"Cross-site scripting in Feeds for YouTube (YouTube video, channel, and gallery plugin)","id":"CVE-2024-6256"},"products":["Shared library"],"published":"2024-06-25","related":[{"cvss_score":9.8,"headline":"HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches","id":"CVE-2024-3817","kev_date_added":null,"published":"2024-04-17"},{"cvss_score":9.8,"headline":"Server-side request forgery in n/a","id":"CVE-2022-26945","kev_date_added":null,"published":"2022-05-25"},{"cvss_score":8.6,"headline":"Path traversal in n/a","id":"CVE-2022-30321","kev_date_added":null,"published":"2022-05-25"},{"cvss_score":8.6,"headline":"Denial of service in n/a","id":"CVE-2022-30322","kev_date_added":null,"published":"2022-05-25"},{"cvss_score":8.6,"headline":"Denial of service in n/a","id":"CVE-2022-30323","kev_date_added":null,"published":"2022-05-25"},{"cvss_score":7.5,"headline":"HashiCorp go-getter Vulnerable to Arbitrary Read through Symlink Attack","id":"CVE-2025-8959","kev_date_added":null,"published":"2025-08-15"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["HashiCorp"]},"summary":"Attackers can achieve arbitrary code execution by manipulating Git configuration to trigger malicious updates in the HashiCorp go-getter library.","url":"https://insights.sbomify.com/CVE-2024-6257/"}