CVE-2024-3817CWE-88

HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches

Critical · published April 17, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
70.8
In the wild
Unconfirmed
What it is

🚨 A sneaky argument injection vulnerability hides in HashiCorp's go-getter library, allowing attackers to play puppet master with Git commands! 🔥 Think of this as a restaurant where a patron can slip a note to the chef, changing the recipe without anyone noticing. They could ask for extra ingredients or even something completely off-menu, with disastrous results for the entire meal! An attacker could exploit this vulnerability to manipulate Git operations, potentially leading to unauthorized access to sensitive branches or executing harmful commands. This could compromise the integrity of your entire project, making it a critical threat that needs immediate attention.

Put simply

Think of this as a restaurant where a patron can slip a note to the chef, changing the recipe without anyone noticing. They could ask for extra ingredients or even something completely off-menu, with disastrous results for the entire meal! This vulnerability in the go-getter library allows for argument injection when executing Git commands to discover remote branches. It's important to note that this issue does not affect the go-getter/v2 branch and package.

What to do

An attacker could exploit this vulnerability to manipulate Git operations, potentially leading to unauthorized access to sensitive branches or executing harmful commands. This could compromise the integrity of your entire project, making it a critical threat that needs immediate attention. To mitigate this vulnerability, make sure to upgrade to the go-getter/v2 branch, as it addresses this issue. Review your current dependencies and implement stringent input validation on command-line arguments. Keeping your software up to date is crucial! You've got this! By following these steps, you'll shore up your defenses and secure your projects. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01329 · 70.8th percentile
Weakness
CWE-88 · Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Published
2024-04-17T19:37Z
EPSS history
Timeline
  • 17 APR 19:37Z
    HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches
    cvelistv5