GO-2021-0098

Source
https://pkg.go.dev/vuln/GO-2021-0098
Import Source
https://vuln.go.dev/ID/GO-2021-0098.json
Aliases
Published
2021-04-14T20:04:52Z
Modified
2023-12-06T01:00:45.633146Z
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.

References

Affected packages

Go / github.com/git-lfs/git-lfs

Affected ranges

Type
SEMVER
Events
Introduced
0The exact introduced commit is unknown
Fixed
1.5.1-0.20210113180018-fc664697ed2c

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/git-lfs/git-lfs/commands",
            "symbols": [
                "PipeCommand",
                "PipeMediaCommand",
                "Run",
                "lockVerifier.Verify",
                "singleCheckout.Run",
                "singleCheckout.RunToPath",
                "uploadContext.NewQueue",
                "uploadContext.UploadPointers"
            ],
            "goos": [
                "windows"
            ]
        },
        {
            "path": "github.com/git-lfs/git-lfs/creds",
            "symbols": [
                "AskPassCredentialHelper.Fill",
                "AskPassCredentialHelper.getFromProgram",
                "CredentialHelperWrapper.FillCreds",
                "CredentialHelpers.Approve",
                "CredentialHelpers.Fill",
                "commandCredentialHelper.Approve"
            ],
            "goos": [
                "windows"
            ]
        },
        {
            "path": "github.com/git-lfs/git-lfs/lfs",
            "symbols": [
                "GitFilter.Clean",
                "GitFilter.Smudge",
                "GitFilter.SmudgeToFile",
                "pipeExtensions"
            ],
            "goos": [
                "windows"
            ]
        },
        {
            "path": "github.com/git-lfs/git-lfs/lfshttp",
            "symbols": [
                "Client.Do",
                "Client.DoWithAccess",
                "Client.HttpClient",
                "Client.NewRequest",
                "Client.Transport",
                "sshAuthClient.Resolve",
                "sshCache.Resolve"
            ],
            "goos": [
                "windows"
            ]
        }
    ]
}