Every CVE Search/ Get API key

CVE-2017-12976

git-annex before 6.20170818 allows remote attackers to execute arbitrary commands via an ssh URL...

8.8 HighFix available

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

3.12%Up 0.4 points since Apr 14, 2021
90%50%10%1%

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 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV: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 HighCVSS: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 HighCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
git-annex
Debian:12
before 6.20170818-1
6.20170818-1
git-annex
Debian:13
before 6.20170818-1
6.20170818-1
git-annex
Debian:14
before 6.20170818-1
6.20170818-1
git-annex
Debian:7
before 3.20120629+deb7u1, plus listed versions
3.20120629
3.20120629+deb7u1
git-annex
Debian:8
before 5.20141125+oops-1+deb8u2, plus listed versions
5.201411255.20141125+deb8u1
5.20141125+oops-1+deb8u2
git-annex
Debian:8
before 5.20141125+deb8u1, plus listed versions
5.20141125
5.20141125+deb8u1
git-annex
Debian:9
before 6.20170101-1+deb9u1, plus listed versions
6.20170101-1
6.20170101-1+deb9u1
git-annex
Hackage
before 6.20170818, plus listed versions
3.201107023.20110702.23.201107053.201107073.20110819
Show 45 moreShow less
3.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-annex
Ubuntu:16.04:LTS
All versions, plus listed versions
5.20150731-1build15.20151208-15.20151208-1build1
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

Show 9 moreShow less
This page doesn't list everything

Left out here: 127 versions. The JSON record has them.

MoveEnter Open