CVE-2017-17831
mediumpriority · track · 36EPSS 0.037 · 90 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.8–8.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
- git large file storage project git large file storage< 2.1.1nvdUScpe:2.3:a:git_large_file_storage_project:git_large_file_storage:*:*:*:*:*:*:*:*
- Go github.com/git-lfs/git-lfs< 2.1.1-0.20170519163204-f913f5f9c7c6osvUSpkg:golang/github.com/git-lfs/git-lfs
- Go github.com/git-lfs/git-lfs< 2.1.1-0.20170519163204-f913f5f9c7c6+incompatibleosvUSpkg:golang/github.com/git-lfs/git-lfs
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-w4xh-w33p-4v29GitHub Git LFS Arbitrary command execution vulnerability2022-05-14ghsa · osvUS
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. ### Specific Go Packages Affected github.com/git-lfs/git-lfs/lfsapi
- GO-2021-0073Arbitrary command execution in github.com/git-lfs/git-lfs2021-04-14vendor · osvUS
Arbitrary command execution can be triggered by improperly sanitized SSH URLs in LFS configuration files. This can be triggered by cloning a malicious repository.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (16)
External citations — patches, advisories, analysis.
- http://blog.recurity-labs.com/2017-08-10/scm-vulnscnnvd
- https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.htmlcnnvd
- https://github.com/git-lfs/git-lfsPatchcnnvd
- https://github.com/git-lfs/git-lfs/pull/2242cnnvd
- https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1cnnvd
- https://www.securityfocus.com/bid/102926cnnvd
- http://blog.recurity-labs.com/2017-08-10/scm-vulnsenisa_euvd
- http://www.securityfocus.com/bid/102926enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan