Remote Command Execution Vulnerability in git-annex: CVE-2017-12976

git-annex Updated 02 Oct 2025

Summary

20/08/2017
N/A
Yes i
High
8.8

CVE-2017-12976: 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-201... Affects git-annex versions < 6.20170818-1. Fixed in 6.20170818-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

git-annex is a tool that allows users to manage files with Git without checking the file contents into Git. It is particularly useful for handling large files and datasets. The package is widely used in various environments, including personal projects and collaborative settings. However, it has a critical vulnerability that allows remote attackers to execute arbitrary commands through specially crafted SSH URLs.

Vulnerability Detail

CVE-2017-12976 is a vulnerability in git-annex prior to version 6.20170818 that allows remote attackers to execute arbitrary commands via an SSH URL that begins with a dash character in the hostname. This can lead to unauthorized command execution on the host system, potentially compromising sensitive data and system integrity. The vulnerability is related to other issues such as CVE-2017-9800 and CVE-2017-12836, indicating a broader concern with SSH URL handling in the software.

How To Fix

Minimum fixed version

6.20170818-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade git-annex

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, avoid using SSH URLs that start with a dash character in the hostname until the software can be updated. This can help mitigate the risk of exploitation while waiting for a patch.

Conclusion

CVE-2017-12976 is a significant vulnerability in git-annex that poses a risk of remote command execution. Users are strongly advised to upgrade to the latest version to mitigate this risk. Additionally, employing tools like Vulert can help in monitoring and managing vulnerabilities in open-source software.

See every vulnerability recorded for git-annex →

Share this vulnerability

FAQ

CVE-2017-12976 is a vulnerability in git-annex that allows remote command execution through specially crafted SSH URLs.

You can check your version of git-annex by running 'git-annex version' in your terminal. If it is below 6.20170818, it is vulnerable.

Exploitation of this vulnerability could lead to unauthorized command execution, data breaches, and system compromise.

Yes, you can use tools like Vulert, which monitors open-source vulnerabilities in your software using a manifest file like package-lock.json.

More information can be found in the official CVE database or by visiting the vulnerability's page on the Vulert platform.

Related vulnerabilities

Recent vulnerabilities recorded for git-annex.

How To Fix

Minimum fixed version

6.20170818-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade git-annex

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback