GO-2024-2948

    Dashboard / Vulnerabilities / GO-2024-2948

    GO-2024-2948

    Published: 28 Jun 2024Last Modified: 4 Feb 2026

    Summary: Code Execution on Git update in github.com/hashicorp/go-getter

    Details: A crafted request can execute Git update on an existing maliciously modified Git Configuration. This can potentially lead to arbitrary code execution. When performing a Git operation, the library will try to clone the given repository to a specified destination. Cloning initializes a git config in the provided destination. An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.

    Affected packages

    Package

    Name: github.com/hashicorp/go-getter

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

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -1.7.5

    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-2948 | CVE-DB