Advisory

GHSA-w4xh-w33p-4v29

Also known as: CVE-2017-17831, GO-2021-0073

Summary

GitHub Git LFS Arbitrary command execution vulnerability

Details

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.
Specific Go Packages Affected
github.com/git-lfs/git-lfs/lfsapi

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 00:55 UTC
Modified
2024-05-20 19:55 UTC

Affected packages and fixes

github.com/git-lfs/git-lfs

Go · All systems

Affected

  • introduced 0, fixed 2.1.1-0.20170519163204-f913f5f9c7c6 (semver)

Fixed versions

2.1.1-0.20170519163204-f913f5f9c7c6

Fix

  • Fixed version 2.1.1-0.20170519163204-f913f5f9c7c6
    go get github.com/git-lfs/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences