GHSA-q64h-39hv-4cf7

Suggest an improvement
Source
https://github.com/advisories/GHSA-q64h-39hv-4cf7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/04/GHSA-q64h-39hv-4cf7/GHSA-q64h-39hv-4cf7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-q64h-39hv-4cf7
Aliases
Related
Published
2024-04-17T21:30:49Z
Modified
2024-05-10T22:11:36.387210Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches
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.

Consumers of the go-getter library should evaluate the risk associated with these issues in the context of their go-getter usage and upgrade go-getter to 1.7.4 or later.

Database specific
{
    "nvd_published_at": "2024-04-17T20:15:08Z",
    "cwe_ids": [
        "CWE-88"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2024-04-18T13:45:52Z"
}
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