CVE-2017-12976
HIGH 8.8CVSS 3.0git-annex command injection via malicious SSH hostname
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.
- Published
- 20 Aug 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- HSEC-2023-0009
- Sources
- NVDJSONOSV HSEC-2023-0009JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | HSEC | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | git-annex_project | git-annexcpe:2.3:a:git-annex_project:git-annex:*:*:*:*:*:*:*:* |
<= 6.20170520 | |
| OSV | Hackage | git-annex | < 6.20170818 | 6.20170818 |
References
- http://source.git-annex.branchable.com/?p=source.git%3Ba=blob%3Bf=doc/bugs/dashed_ssh_hostname_security_hole.mdwn
- http://source.git-annex.branchable.com/?p=source.git%3Ba=commit%3Bh=c24d0f0e8984576654e2be149005bc884fe0403a
- http://source.git-annex.branchable.com/?p=source.git%3Ba=commit%3Bh=df11e54788b254efebb4898b474de11ae8d3b471
- http://www.debian.org/security/2017/dsa-4010
- https://lists.debian.org/debian-lts-announce/2018/09/msg00004.html
- https://git-annex.branchable.com/security/CVE-2017-12976/ · ADVISORY
- http://source.git-annex.branchable.com/?p=source.git;a=commitdiff;h=df11e54788b254efebb4898b474de11ae8d3b471 · FIX
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 20 Aug 2017)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Nov 2025)