Advisory

GO-2021-0098

Also known as: BIT-git-lfs-2021-21237, CVE-2021-21237, GHSA-cx3w-xqmc-84g5

Summary

Arbitrary code execution on Windows in github.com/git-lfs/git-lfs

Details

Due to the standard library behavior of exec.LookPath on Windows a number of methods may result in arbitrary code execution when cloning or operating on untrusted Git repositories.

Severity

Not rated by the source.

Dates

Published
2021-04-14 20:04 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/git-lfs/git-lfs

Go · All systems

Affected

  • introduced 0, fixed 1.5.1-0.20210113180018-fc664697ed2c (semver)

Fixed versions

1.5.1-0.20210113180018-fc664697ed2c

Fix

  • Fixed version 1.5.1-0.20210113180018-fc664697ed2c
    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: Go Vulnerability Database · CC BY 4.0

Sources & licences