CVE-2017-17831
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2017-17831 NameCVE-2017-17831 DescriptionGitHub 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. SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub…
CVE-2017-17831
| Name | CVE-2017-17831 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| git-lfs (PTS) | bullseye | 2.13.2-1 | fixed |
| bullseye (security) | 2.13.2-1+deb11u2 | fixed | |
| bookworm, bookworm (security) | 3.3.0-1+deb12u1 | fixed | |
| trixie | 3.6.1-1+deb13u1 | fixed | |
| forky, sid | 3.7.1-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| git-lfs | source | (unstable) | (not affected) |
Notes
- git-lfs <not-affected> (Fixed before initial upload to Debian)
https://github.com/git-lfs/git-lfs/pull/2242
https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1
Apply commands
- git-lfs <not-affected> (Fixed before initial upload to Debian)https://github.com/git-lfs/git-lfs/pull/2242https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 0 |
| sid | Fixed | 0 |
| forky | Fixed | 0 |
| bullseye | Fixed | 0 |
| bookworm | Fixed | 0 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Go | github.com/git-lfs/git-lfs | <2.1.1-0.20170519163204-f913f5f9c7c6 | 2.1.1-0.20170519163204-f913f5f9c7c6 |
| Go | github.com/git-lfs/git-lfs | <2.1.1-0.20170519163204-f913f5f9c7c6+incompatible | 2.1.1-0.20170519163204-f913f5f9c7c6+incompatible |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| git_large_file_storage_project | git_large_file_storage | {"endExcluding":"2.1.1"} | 2.1.1 |
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
- https://nvd.nist.gov/vuln/detail/CVE-2017-17831
- https://github.com/git-lfs/git-lfs/pull/2241
- https://github.com/git-lfs/git-lfs/commit/f913f5f9c7c6d1301785fdf9884a2942d59cdf19
- https://github.com/git-lfs/git-lfs
- https://pkg.go.dev/vuln/GO-2021-0073
- https://web.archive.org/web/20200227131639/http://www.securityfocus.com/bid/102926
- https://security-tracker.debian.org/tracker/CVE-2017-17831
CWEs
CWE-20
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.