CVE-2017-17831 json
GitHub Git LFS Arbitrary command execution vulnerability
published 2017-12-21 8 y ago modified 2026-06-17 4 mo ago also GHSA-w4xh-w33p-4v29 , GO-2021-0073 , EUVD-2022-5497
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/git-lfs/git-lfs 2.1.1-0.20170519163204-f913f5f9c7c6, 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible
- git_large_file_storage_project git_large_file_storage 2.1.1
- github.com/git-lfs/git-lfs@f913f5f commit
- github.com/git-lfs/git-lfs#2242 pull request
- github.com/git-lfs/git-lfs#2241 pull request
- github.com/git-lfs/git-lfs/releases/tag/v2.1.1 release
Exploit prediction
3.68% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- blog.recurity-labs.com http://blog.recurity-labs.com/2017-08-10/scm-vulns referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/git-lfs/git-lfs | <2.1.1-0.20170519163204-f913f5f9c7c6 <2.1.1-0.20170519163204-f913f5f9c7c6+incompatible |
2.1.1-0.20170519163204-f913f5f9c7c6 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/git-lfs/git-lfs/pull/2242
web, patch, third-party-advisory
-
github.com
/git-lfs/git-lfs/pull/2241
web, patch
-
github.com
/git-lfs/git-lfs/commit/f913f5f9c7c6d1301785fdf9884a2942d59cdf19
web, patch
-
blog.recurity-labs.com
/2017-08-10/scm-vulns
web, exploit, third-party-advisory
-
github.com
/git-lfs/git-lfs/releases/tag/v2.1.1
web, release-notes, third-party-advisory
-
securityfocus.com
/bid/102926
vdb-entry, web, third-party-advisory
-
confluence.atlassian.com
/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2017-17831
advisory
-
github.com
/git-lfs/git-lfs
package
-
pkg.go.dev
/vuln/GO-2021-0073
web
-
web.archive.org
/web/20200227131639/http://www.securityfocus.com/bid/102926
web
Sources
- CVE List CVE-2017-17831
- GitHub Advisory GHSA-w4xh-w33p-4v29
- NVD CVE-2017-17831
- OSV GO-2021-0073
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.