🛡️ CVE-2017-17831 — git-lfs
Description
GitHub 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.
Specific Go Packages Affected
github.com/git-lfs/git-lfs/lfsapi
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability high.
Weakness class
CVE-2017-17831 is classified as CWE-20: Improper Input Validation. The application accepts input without checking that it has the expected form, so malformed values reach code that assumes they are well formed.
Affected software
CVE-2017-17831 is recorded against 1 package.
- github.com/git-lfs/git-lfs
Timeline and source
Published on 14 May 2022 and last revised on 20 May 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Web)
github.com (Web)
confluence.atlassian.com (Web)
github.com (Package)
github.com (Web)
pkg.go.dev (Web)
web.archive.org (Web)
blog.recurity-labs.com (Web)
www.securityfocus.com (Web)
Details
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| github.com/git-lfs/git-lfs | — | — |
Similar Threats
- High CVE-2025-26625
- High CVE-2024-53263
- Critical CVE-2022-24826
- High CVE-2021-21237
- Critical CVE-2020-27955
More CVE 2017 advisories
Browse all of CVE 2017 in the advisory index.
Site Security Check
Is git-lfs part of your stack?
CVE-2017-17831 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.