blob: 5afd916327fe6cdf773d2329f81744aec942df1e [file] [log] [blame]
{
"schema_version": "1.3.1",
"id": "GO-2024-2800",
"modified": "0001-01-01T00:00:00Z",
"published": "0001-01-01T00:00:00Z",
"aliases": [
"CVE-2024-3817",
"GHSA-q64h-39hv-4cf7"
],
"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.\n\nAn attacker may format a Git URL in order to inject additional Git arguments to the Git call.",
"affected": [
{
"package": {
"name": "github.com/hashicorp/go-getter",
"ecosystem": "Go"
},
"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"
]
}
]
}
}
],
"references": [
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-q64h-39hv-4cf7"
},
{
"type": "FIX",
"url": "https://github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9"
},
{
"type": "WEB",
"url": "https://discuss.hashicorp.com/t/hcsec-2024-09-hashicorp-go-getter-vulnerable-to-argument-injection-when-fetching-remote-default-git-branches/66040"
}
],
"database_specific": {
"url": "https://pkg.go.dev/vuln/GO-2024-2800",
"review_status": "REVIEWED"
}
}