CVE-2017-12976
git-annex before 6.20170818 allows remote attackers to execute arbitrary commands via an ssh URL...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.8
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.
- Record
CVE-2017-12976- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-20
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2017-12976- Updated
- 2026-11-02
EUVDEUVD-2017-4494 No score
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.
- Record
EUVD-2017-4494- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jqcx-qqvc-9wx5
8.8
git-annex before 6.20170818 allows remote attackers to execute arbitrary commands via an ssh URL...
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.
- Record
GHSA-jqcx-qqvc-9wx5- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-20
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2017-12976- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-12976
8.8
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.
- Record
DEBIAN-CVE-2017-12976- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-12976
8.8
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.
- Record
UBUNTU-CVE-2017-12976- CVSS 3.0
- 8.8 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVHSEC-2023-0009 No score
git-annex command injection via malicious SSH hostname
git-annex command injection via malicious SSH hostname
git-annex was vulnerable to the same class of security hole as
git's CVE-2017-1000117. In several cases, git-annex parses a
repository URL, and uses it to generate a ssh command, with the
hostname to ssh to coming from the URL. If the hostname it parses is
something like -eProxyCommand=evil, this could result in arbitrary
local code execution.
Some details of URL parsing may prevent the exploit working in some cases.
Exploiting this would involve the attacker tricking the victim into
adding a remote something like ssh://-eProxyCommand=evil/blah.
One possible avenue for an attacker that avoids exposing the URL to
the user is to use initremote with an SSH remote, so embedding the
URL in the git-annex branch. Then the victim would enable it with
enableremote.
This was fixed in version 6.20170818. Now there's a SshHost
type that is not allowed to start with a dash, and every invocation
of git-annex uses a function that takes a SshHost.
- Record
HSEC-2023-0009- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
git-annexDebian:12 |
before 6.20170818-1 | 6.20170818-1 |
git-annexDebian:13 |
before 6.20170818-1 | 6.20170818-1 |
git-annexDebian:14 |
before 6.20170818-1 | 6.20170818-1 |
git-annexDebian:7 |
before 3.20120629+deb7u1, plus listed versions 3.20120629 |
3.20120629+deb7u1 |
git-annexDebian:8 |
before 5.20141125+oops-1+deb8u2, plus listed versions 5.201411255.20141125+deb8u1 |
5.20141125+oops-1+deb8u2 |
git-annexDebian:8 |
before 5.20141125+deb8u1, plus listed versions 5.20141125 |
5.20141125+deb8u1 |
git-annexDebian:9 |
before 6.20170101-1+deb9u1, plus listed versions 6.20170101-1 |
6.20170101-1+deb9u1 |
git-annexHackage |
before 6.20170818, plus listed versions 3.201107023.20110702.23.201107053.201107073.20110819 Show 45 moreShow less3.201109023.201109063.201109153.201109283.201110113.201111223.201112033.201112113.201112313.201201133.201201153.201201163.201201233.201202273.201202293.201202303.201203093.201203153.201204053.201204063.201204183.201204303.201205113.201205223.201206053.201206113.201206143.201206153.201206243.201206293.201207213.201208073.201208253.201209243.201210013.201210093.201210103.201210163.201210173.201211123.201211263.201211273.20121127.13.201212113.20130102 |
6.20170818 |
git-annexUbuntu:16.04:LTS |
All versions, plus listed versions 5.20150731-1build15.20151208-15.20151208-1build1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-12976 is a high vulnerability (CVSS 8.8) in Git-annex Project Git-annex, published August 20, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 3.12%, the 87th percentile. Fixed in git-annex 6.20170818-1.
References
lists.debian.org/debian-lts-announce/2018/09/msg00004.html
source.git-annex.branchable.com?p=source.git%3Ba=commit%3Bh=c24d0f0e8984576654e2be149005bc884fe0403a
source.git-annex.branchable.com?p=source.git%3Ba=commit%3Bh=df11e54788b254efebb4898b474de11ae8d3b471
debian.org/security/2017/dsa-4010
source.git-annex.branchable.com?p=source.git%3Ba=blob%3Bf=doc/bugs/dashed_ssh_hostname_security_hole.mdwn
nvd.nist.gov/vuln/detail/CVE-2017-12976
Show 9 moreShow less
source.git-annex.branchable.com?p=source.git;a=blob;f=doc/bugs/dashed_ssh_hostname_security_hole.mdwn
source.git-annex.branchable.com?p=source.git;a=commit;h=c24d0f0e8984576654e2be149005bc884fe0403a
source.git-annex.branchable.com?p=source.git;a=commit;h=df11e54788b254efebb4898b474de11ae8d3b471
github.com/advisories/GHSA-jqcx-qqvc-9wx5
security-tracker.debian.org/tracker/CVE-2017-12976
git-annex.branchable.com/security/CVE-2017-12976
source.git-annex.branchable.com?p=source.git;a=commitdiff;h=df11e54788b254efebb4898b474de11ae8d3b471
ubuntu.com/security/CVE-2017-12976
cve.org/CVERecord?id=CVE-2017-12976
Left out here: 127 versions. The JSON record has them.