Lucene search

K
githubGitHub Advisory DatabaseGHSA-XFHP-JF8P-MH5W
HistoryJun 25, 2024 - 6:31 p.m.

HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation

2024-06-2518:31:22
CWE-77
GitHub Advisory Database
github.com
12
hashicorp
go-getter
git update
code execution
malicious
configuration

CVSS3

8.4

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

7.8

Confidence

High

EPSS

0

Percentile

9.1%

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.

Affected configurations

Vulners
Node
hashicorpgo-getterRange<1.7.5
VendorProductVersionCPE
hashicorpgo-getter*cpe:2.3:a:hashicorp:go-getter:*:*:*:*:*:*:*:*

CVSS3

8.4

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

HIGH

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

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

AI Score

7.8

Confidence

High

EPSS

0

Percentile

9.1%