Command injection in Git LFS - CVE-2017-17831
Published: March 6, 2018
Vulnerability identifier: #VU10850
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2017-17831
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability:
No public exploit available
Vendor: Git
Affected software:
Git LFS
Git LFS
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary commands on the target system.
The weakness exists due to command injection. A remote attacker can inject and 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.
The weakness exists due to command injection. A remote attacker can inject and 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.
How to mitigate CVE-2017-17831
Update to version 2.1.1 or later.