logo

CVE-2024-6257 github.com/hashicorp/go-getter

Package

Manager: go
Name: github.com/hashicorp/go-getter
Vulnerable Version: >=0 <1.7.5

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

EPSS: 0.00044 pctl0.1269

Details

HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation 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.

Metadata

Created: 2024-06-25T18:31:22Z
Modified: 2024-06-28T21:43:53Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-xfhp-jf8p-mh5w/GHSA-xfhp-jf8p-mh5w.json
CWE IDs: ["CWE-77"]
Alternative ID: GHSA-xfhp-jf8p-mh5w
Finding: F422
Auto approve: 1