{"answers":{"affected":"3 open source packages ship an affected version, including github.com/git-lfs/git-lfs. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-17831 in the wild and no public exploit code.","fix":"Upgrade github.com/git-lfs/git-lfs to a fixed version for your release line: 2.1.1-0.20170519163204-f913f5f9c7c6 or 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible.","what":"CVE-2017-17831 is a high-severity command injection vulnerability in n/a, published on 21 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2017-17831 and fix it if it is affected.\n\nWhat it is: CVE-2017-17831 is a high-severity command injection vulnerability in n/a, published on 21 Dec 2017. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2017-17831 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/git-lfs/git-lfs (Go): affected all versions; fixed in 2.1.1-0.20170519163204-f913f5f9c7c6\n- github.com/git-lfs/git-lfs (Go): affected all versions; fixed in 2.1.1-0.20170519163204-f913f5f9c7c6\n- github.com/git-lfs/git-lfs (Go): affected all versions; fixed in 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible\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-2017-17831/ (Markdown: https://insights.sbomify.com/CVE-2017-17831/index.md)","id":"CVE-2017-17831","markdown":"https://insights.sbomify.com/CVE-2017-17831/index.md","name":"CVE-2017-17831","record":{"aliases":["GHSA-w4xh-w33p-4v29","GO-2021-0073"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Git LFS","requires_auth":"none","summary":"Remote attackers can execute arbitrary commands via a malicious .lfsconfig file in Git LFS repositories.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"git_large_file_storage","vendor":"git_large_file_storage_project"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"GitHub Git LFS before 2.1.1 allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, located on a \"url =\" line in a .lfsconfig file within a repository.","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":"GitHub Git LFS Arbitrary command execution vulnerability","id":"CVE-2017-17831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2017"},"n_packages":3,"n_references":5,"next":{"headline":"Cross-site scripting in n/a","id":"CVE-2017-17832"},"packages":[{"ecosystem":"Go","fixed":["2.1.1-0.20170519163204-f913f5f9c7c6"],"introduced":["0"],"last_affected":[],"package":"github.com/git-lfs/git-lfs","purl":null,"source":"GHSA-w4xh-w33p-4v29"},{"ecosystem":"Go","fixed":["2.1.1-0.20170519163204-f913f5f9c7c6"],"introduced":["0"],"last_affected":[],"package":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","source":"GHSA-w4xh-w33p-4v29"},{"ecosystem":"Go","fixed":["2.1.1-0.20170519163204-f913f5f9c7c6+incompatible"],"introduced":["0"],"last_affected":[],"package":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","source":"GO-2021-0073"}],"prev":{"headline":"Cross-site request forgery in n/a","id":"CVE-2017-17830"},"products":["n/a"],"published":"2017-12-21","related":[{"cvss_score":9.8,"headline":"Git LFS can execute a binary from the current directory on Windows","id":"CVE-2022-24826","kev_date_added":null,"published":"2022-04-19"},{"cvss_score":9.8,"headline":"Git LFS can execute a Git binary from the current directory","id":"CVE-2020-27955","kev_date_added":null,"published":"2020-11-05"},{"cvss_score":7.2,"headline":"Git LFS can execute a Git binary from the current directory on Windows","id":"CVE-2021-21237","kev_date_added":null,"published":"2021-01-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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary commands via a malicious .lfsconfig file in Git LFS repositories.","url":"https://insights.sbomify.com/CVE-2017-17831/"}