{"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-3817 in the wild and no public exploit code.","fix":"Upgrade github.com/hashicorp/go-getter to 1.7.4 or later.","what":"CVE-2024-3817 is a critical command injection vulnerability in HashiCorp Shared library, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-3817 and fix it if it is affected.\n\nWhat it is: CVE-2024-3817 is a critical command injection vulnerability in HashiCorp Shared library, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-3817 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/hashicorp/go-getter (Go): affected from 1.5.9; fixed in 1.7.4\n- github.com/hashicorp/go-getter (Go): affected from 1.5.9; fixed in 1.7.4\n- github.com/hashicorp/go-getter (Go): affected from 1.5.9; fixed in 1.7.4\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-3817/ (Markdown: https://insights.sbomify.com/CVE-2024-3817/index.md)","id":"CVE-2024-3817","markdown":"https://insights.sbomify.com/CVE-2024-3817/index.md","name":"CVE-2024-3817","record":{"aliases":["AZL-39939","BELL-CVE-2024-3817","DEBIAN-CVE-2024-3817","GHSA-q64h-39hv-4cf7","GO-2024-2800","UBUNTU-CVE-2024-3817"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Go getter library","requires_auth":"none","summary":"Attackers can inject arguments into Git commands via remote branch discovery, potentially leading to arbitrary code execution in applications using the library.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HashiCorp","cpe":[{"product":"go-getter","vendor":"hashicorp"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"}],"description":"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.","ecosystems":["Go"],"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 Argument Injection When Fetching Remote Default Git Branches","id":"CVE-2024-3817","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":3,"n_references":1,"next":{"headline":"Cross-site scripting in Gutenberg Essential Blocks – Page Builder for Gutenberg Blocks \u0026 Patterns","id":"CVE-2024-3818"},"packages":[{"ecosystem":"Go","fixed":["1.7.4"],"introduced":["1.5.9"],"last_affected":[],"package":"github.com/hashicorp/go-getter","purl":null,"source":"GHSA-q64h-39hv-4cf7"},{"ecosystem":"Go","fixed":["1.7.4"],"introduced":["1.5.9"],"last_affected":[],"package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"GHSA-q64h-39hv-4cf7"},{"ecosystem":"Go","fixed":["1.7.4"],"introduced":["1.5.9"],"last_affected":[],"package":"github.com/hashicorp/go-getter","purl":"pkg:golang/github.com/hashicorp/go-getter","source":"GO-2024-2800"}],"prev":{"headline":"SQLi in S@M CMS","id":"CVE-2024-3816"},"products":["Shared library"],"published":"2024-04-17","related":[{"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":8.4,"headline":"HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation","id":"CVE-2024-6257","kev_date_added":null,"published":"2024-06-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":"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":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["HashiCorp"]},"summary":"Attackers can inject arguments into Git commands via remote branch discovery, potentially leading to arbitrary code execution in applications using the library.","url":"https://insights.sbomify.com/CVE-2024-3817/"}