Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/git-lfs/git-lfs
  4. ›
  5. CVE-2017-17831

CVE-2017-17831: Improper Input Validation

May 14, 2022 (updated February 25, 2023)

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.

References

  • blog.recurity-labs.com/2017-08-10/scm-vulns
  • www.securityfocus.com/bid/102926
  • confluence.atlassian.com/sourcetreekb/sourcetree-security-advisory-2018-01-24-942834324.html
  • github.com/advisories/GHSA-w4xh-w33p-4v29
  • github.com/git-lfs/git-lfs/commit/f913f5f9c7c6d1301785fdf9884a2942d59cdf19
  • github.com/git-lfs/git-lfs/pull/2241
  • github.com/git-lfs/git-lfs/pull/2242
  • github.com/git-lfs/git-lfs/releases/tag/v2.1.1
  • nvd.nist.gov/vuln/detail/CVE-2017-17831
  • pkg.go.dev/vuln/GO-2021-0073
  • web.archive.org/web/20200227131639/http://www.securityfocus.com/bid/102926

Code Behaviors & Features

Detect and mitigate CVE-2017-17831 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.1-0.20170519163204-f913f5f9c7c6

Fixed versions

  • v2.1.1-0.20170519163204-f913f5f9c7c6

Solution

Upgrade to version 2.1.1-0.20170519163204-f913f5f9c7c6 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/github.com/git-lfs/git-lfs/CVE-2017-17831.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:32 +0000.