GHSA-xfhp-jf8p-mh5w

Suggest an improvement
Source
https://github.com/advisories/GHSA-xfhp-jf8p-mh5w
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-xfhp-jf8p-mh5w/GHSA-xfhp-jf8p-mh5w.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-xfhp-jf8p-mh5w
Aliases
Related
Published
2024-06-25T18:31:22Z
Modified
2024-07-15T22:12:28.995940Z
Severity
  • 8.4 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
Details

HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution. When go-getter is performing a Git operation, go-getter will try to clone the given repository in a specified destination. Cloning initializes a git config to the provided destination and if the repository needs to get updated go-getter will pull the new changes .

An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.

Database specific
{
    "nvd_published_at": "2024-06-25T17:15:10Z",
    "cwe_ids": [
        "CWE-77"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-25T20:14:06Z"
}
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
0Unknown introduced version / All previous versions are affected
Fixed
1.7.5