{"answers":{"affected":"1 open source package ship an affected version, including git-annex. It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-12976 in the wild and no public exploit code.","fix":"Upgrade git-annex to 6.20170818 or later.","what":"CVE-2017-12976 is a high-severity command injection vulnerability in n/a, published on 20 Aug 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-12976 and fix it if it is affected.\n\nWhat it is: CVE-2017-12976 is a high-severity command injection vulnerability in n/a, published on 20 Aug 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-12976 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- git-annex (Hackage): affected all versions; fixed in 6.20170818\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-12976/ (Markdown: https://insights.sbomify.com/CVE-2017-12976/index.md)","id":"CVE-2017-12976","markdown":"https://insights.sbomify.com/CVE-2017-12976/index.md","name":"CVE-2017-12976","record":{"aliases":["DEBIAN-CVE-2017-12976","DLA-1144-1","DSA-4010-1","GHSA-jqcx-qqvc-9wx5","HSEC-2023-0009","UBUNTU-CVE-2017-12976"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"git-annex","requires_auth":"none","summary":"Remote attackers can execute arbitrary commands in git-annex via crafted SSH URLs with dash-prefixed hostnames, requiring an upgrade to secure the tool.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"git-annex","vendor":"git-annex_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":"git-annex before 6.20170818 allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, as demonstrated by an ssh://-eProxyCommand= URL, a related issue to CVE-2017-9800, CVE-2017-12836, CVE-2017-1000116, and CVE-2017-1000117.","ecosystems":["Hackage"],"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":"Command injection in n/a","id":"CVE-2017-12976","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2017"},"n_packages":1,"n_references":5,"next":{"headline":"SQL injection in n/a","id":"CVE-2017-12977"},"packages":[{"ecosystem":"Hackage","fixed":["6.20170818"],"introduced":["0"],"last_affected":[],"package":"git-annex","purl":"pkg:hackage/git-annex","source":"HSEC-2023-0009"}],"prev":{"headline":"Improper Verification of Cryptographic Signature in Nimbus JOSE+JWT","id":"CVE-2017-12974"},"products":["n/a"],"published":"2017-08-20","related":[{"cvss_score":7.5,"headline":"S3 and Glacier remotes creds embedded in the git repo were not encrypted","id":"CVE-2014-6274","kev_date_added":null,"published":"2025-06-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"open","licence":"CC0 1.0","name":"Haskell Security Response Team","prefix":"HSEC"},{"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 in git-annex via crafted SSH URLs with dash-prefixed hostnames, requiring an upgrade to secure the tool.","url":"https://insights.sbomify.com/CVE-2017-12976/"}