PT-2017-15036 · Github · Git Lfs

Joern

·

Published

2017-12-21

·

Updated

2022-05-14

·

CVE-2017-17831

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Git LFS versions prior to 2.1.1
Description The issue 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. This can be triggered by cloning a malicious repository, leading to arbitrary command execution due to improperly sanitized SSH URLs in LFS configuration files.
Recommendations For Git LFS versions prior to 2.1.1, update to version 2.1.1 or later to resolve the issue. As a temporary workaround, consider restricting access to repositories that may contain malicious .lfsconfig files to minimize the risk of exploitation. Avoid using ssh URLs with an initial dash character in the hostname until the issue is resolved.

Exploit

Fix

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2017-17831
GHSA-W4XH-W33P-4V29
GO-2021-0073

Affected Products

Git Lfs