GO-2024-2800

    Dashboard / Vulnerabilities / GO-2024-2800

    GO-2024-2800

    Published: 10 May 2024Last Modified: 4 Feb 2026

    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.

    Affected packages

    Package

    Name: github.com/hashicorp/go-getter

    Purl: pkg:golang/github.com/hashicorp/go-getter

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 1.5.9
    Fixed -1.7.4

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GO-2024-2800 | CVE-DB