CVE-2017-17831
GitHub Git LFS Arbitrary command execution vulnerability
Record from NVD · Published December 21, 2017
github.com/git-lfs/git-lfs is fixed in v2.1.1-0.20170519163204-f913f5f9c7c6 and 2.1.1-0.20170519163204-f913f5f9c7c6 (Go Modules)
GitHub Git LFS before 2.1.1 allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, located on a "url =" line in a .lfsconfig file within a repository.
EPSS 3.68% · 89.9th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/git-lfs/git-lfs | Go Modules | v2.1.1-0.20170519163204-f913f5f9c7c6, 2.1.1-0.20170519163204-f913f5f9c7c6 |
| git_large_file_storage | git_large_file_storage_project | 2.1.1 |
| git-lfs | Ubuntu:18.04:LTS | 2.3.4-1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| git_large_file_storage_project | git_large_file_storage | 0 |
Timeline
- Dec 21, 2017 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- May 20, 2024 CVE Updated
- Mar 17, 2026 Security Advisory
- Oct 1, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2017-17831
vulnetix vdb fixes CVE-2017-17831
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2017-17831/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- http://blog.recurity-labs.com/2017-08-10/scm-vulns exploit
- http://www.securityfocus.com/bid/102926 advisory
- https://github.com/git-lfs/git-lfs/pull/2242 fix
- https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1 fix
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html advisory