What’s Vulnerable › Vulnerabilities
CVE-2017-17831
- Severity: high (CVSS 8.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.7% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2017-12-21 · updated 2026-06-17
- Weakness: CWE-20
Description
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.
Affected products
- git-lfs: before 2.1.1 — fixed in 2.1.1
How to fix
Upgrade to a fixed version: git-lfs 2.1.1. Check the vendor advisory for mitigations.
References
- http://blog.recurity-labs.com/2017-08-10/scm-vulns
- http://www.securityfocus.com/bid/102926
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
- https://github.com/git-lfs/git-lfs/pull/2242
- https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1
- http://blog.recurity-labs.com/2017-08-10/scm-vulns
- http://www.securityfocus.com/bid/102926
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
- https://github.com/git-lfs/git-lfs/pull/2242
- https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1
Get alerted when CVE-2017-17831 or the next vulnerability affects your stack