{"id":"CVE-2017-17831","aliases":["EUVD-2022-5497","GHSA-w4xh-w33p-4v29","GO-2021-0073","UBUNTU-CVE-2017-17831"],"status":"published","title":"GitHub Git LFS Arbitrary command execution vulnerability","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.","severity":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.03677,"percentile":0.89739,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2017-12-21T06:00:00Z","modified":"2026-10-20T10:47:49Z","fixes":[{"ecosystem":"Go","package":"github.com/git-lfs/git-lfs","fixed_in":["2.1.1-0.20170519163204-f913f5f9c7c6","2.1.1-0.20170519163204-f913f5f9c7c6+incompatible"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/git-lfs/git-lfs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.1-0.20170519163204-f913f5f9c7c6"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/git-lfs/git-lfs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.1-0.20170519163204-f913f5f9c7c6"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/git-lfs/git-lfs","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.1.1-0.20170519163204-f913f5f9c7c6+incompatible"}]}]}],"products":[{"vendor":"git_large_file_storage_project","product":"git_large_file_storage"}],"references":[{"url":"https://github.com/git-lfs/git-lfs/releases/tag/v2.1.1","tags":["x_refsource_MISC","x_transferred","Release Notes","Third Party Advisory","advisory","web","report"]},{"url":"http://blog.recurity-labs.com/2017-08-10/scm-vulns","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"http://www.securityfocus.com/bid/102926","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory","web"]},{"url":"https://github.com/git-lfs/git-lfs/pull/2242","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-17831","tags":["advisory"]},{"url":"https://github.com/git-lfs/git-lfs/pull/2241","tags":["web","fix"]},{"url":"https://github.com/git-lfs/git-lfs/commit/f913f5f9c7c6d1301785fdf9884a2942d59cdf19","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0073","tags":["web"]},{"url":"https://web.archive.org/web/20200227131639/http://www.securityfocus.com/bid/102926","tags":["web"]},{"url":"https://github.com/advisories/GHSA-w4xh-w33p-4v29"},{"url":"https://github.com/git-lfs/git-lfs","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2017-17831","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-17831","tags":["report"]}],"sources":{"cve":[{"id":"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.","status":"published","published":"2017-12-21T06:00:00Z","modified":"2024-08-05T21:06:48.301Z","updated_at":"2026-11-02T14:33:18.556155Z"}],"euvd":[{"id":"EUVD-2022-5497","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.","status":"published","published":"2017-12-21T06:00:00Z","modified":"2024-08-05T21:06:48Z","updated_at":"2026-11-03T02:23:08.488418Z"}],"ghsa":[{"id":"GHSA-w4xh-w33p-4v29","title":"GitHub Git LFS Arbitrary command execution vulnerability","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.\n### Specific Go Packages Affected\ngithub.com/git-lfs/git-lfs/lfsapi","status":"published","published":"2022-05-14T00:55:16Z","modified":"2023-10-02T16:02:07Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:37:07.641671Z"}],"nvd":[{"id":"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.","status":"published","published":"2017-12-21T06:29:00.243Z","modified":"2026-06-17T01:11:44.42Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:04:11.215487Z"}],"osv":[{"id":"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.","status":"published","published":"2017-12-21T06:29:00.243Z","modified":"2026-10-20T10:47:49.134391092Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:04.853379Z"},{"id":"GHSA-w4xh-w33p-4v29","title":"GitHub Git LFS Arbitrary command execution vulnerability","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.\n### Specific Go Packages Affected\ngithub.com/git-lfs/git-lfs/lfsapi","status":"published","published":"2022-05-14T00:55:16Z","modified":"2024-05-20T19:55:20Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:58.04805Z"},{"id":"UBUNTU-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.","status":"withdrawn","published":"2017-12-21T06:29:00Z","modified":"2025-07-16T08:13:07.304792Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:14.977781Z"},{"id":"GO-2021-0073","title":"Arbitrary command execution in github.com/git-lfs/git-lfs","description":"Arbitrary command execution can be triggered by improperly sanitized SSH URLs in LFS configuration files. This can be triggered by cloning a malicious repository.","status":"published","published":"2021-04-14T20:04:52Z","modified":"2024-06-03T20:51:31Z","updated_at":"2026-11-02T15:47:00.604718Z"}]}}
