CVE-2017-17831
HIGH 8.8CVSS 3.0GitHub Git LFS Arbitrary command execution vulnerability
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.
- Published
- 21 Dec 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-w4xh-w33p-4v29GO-2021-0073
- Sources
- NVDJSONOSV GHSA-w4xh-w33p-4v29JSONOSV GO-2021-0073JSON
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 | GitHub | 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_large_file_storage_project | git_large_file_storagecpe:2.3:a:git_large_file_storage_project:git_large_file_storage:*:*:*:*:*:*:*:* |
< 2.1.1 | 2.1.1 |
| OSV | Go | github.com/git-lfs/git-lfs | < 2.1.1-0.20170519163204-f913f5f9c7c6 | 2.1.1-0.20170519163204-f913f5f9c7c6 |
| OSV | Go | github.com/git-lfs/git-lfs | < 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible | 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible |
References
- http://blog.recurity-labs.com/2017-08-10/scm-vulns · Exploit, Third Party Advisory, WEB
- http://www.securityfocus.com/bid/102926 · Third Party Advisory, VDB Entry, WEB
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html · Third Party Advisory, WEB
- https://github.com/git-lfs/git-lfs/pull/2242 · Patch, Third Party Advisory, WEB
- https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1 · Release Notes, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-17831 · ADVISORY
- https://github.com/git-lfs/git-lfs/pull/2241 · WEB, FIX
- https://github.com/git-lfs/git-lfs/commit/f913f5f9c7c6d1301785fdf9884a2942d59cdf19 · WEB, FIX
- https://github.com/git-lfs/git-lfs · PACKAGE
- https://pkg.go.dev/vuln/GO-2021-0073 · WEB
- https://web.archive.org/web/20200227131639/http://www.securityfocus.com/bid/102926 · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 21 Dec 2017)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Apr 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 May 2022)