GO-2024-2800

Source
https://pkg.go.dev/vuln/GO-2024-2800
Import Source
https://vuln.go.dev/ID/GO-2024-2800.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2024-2800
Aliases
Published
2024-05-10T21:39:25Z
Modified
2024-09-11T06:13:04.176764Z
Summary
Argument injection when fetching remote default Git branches in github.com/hashicorp/go-getter
Details

When go-getter is performing a Git operation, go-getter will try to clone the given repository. If a Git reference is not passed along with the Git url, go-getter will then try to check the remote repository's HEAD reference of its default branch by passing arguments to the Git binary on the host it is executing on.

An attacker may format a Git URL in order to inject additional Git arguments to the Git call.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2800"
}
References

Affected packages

Go / github.com/hashicorp/go-getter

Package

Name
github.com/hashicorp/go-getter
View open source insights on deps.dev
Purl
pkg:golang/github.com/hashicorp/go-getter

Affected ranges

Type
SEMVER
Events
Introduced
1.5.9
Fixed
1.7.4

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/hashicorp/go-getter",
            "symbols": [
                "Client.ChecksumFromFile",
                "Client.Get",
                "FolderStorage.Get",
                "Get",
                "GetAny",
                "GetFile",
                "GitGetter.Get",
                "GitGetter.GetFile",
                "GitGetter.clone",
                "HttpGetter.Get",
                "findRemoteDefaultBranch"
            ]
        }
    ]
}