CVE-2024-3817: HashiCorp go-getter Vulnerable to Argument Injection When Fetching Remote Default Git Branches

Published Apr 17, 2024
·
Updated

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

Other sources

HashiCorp’s go-getter library is vulnerable to argument injection when executing Git to discover remote branches.

This vulnerability does not affect the go-getter/v2 branch and package.

NVD

When go-getter is performing a Git operation, go-getter will try to clone the given repository. If a Git reference is not passed along with the Git url, go-getter will then try to check the remote repository’s HEAD reference of its default branch by passing arguments to the Git binary on the host it is executing on.

An attacker may format a Git URL in order to inject additional Git arguments to the Git call.

Consumers of the go-getter library should evaluate the risk associated with these issues in the context of their go-getter usage and upgrade go-getter to 1.7.4 or later.

GitHub

Affected Software

4 affected componentsFixes available
go/github.com/hashicorp/go-getter>=1.5.9<1.7.4
1.7.4
HashiCorp go-getter>=1.5.9<1.7.4
Microsoft cbl2 terraform 1.3.2-25<1.3.2-14
1.3.2-14
Microsoft cbl2 terraform 1.3.2-14<1.3.2-14
1.3.2-14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/hashicorp/go-getter to a version that resolves this vulnerability.

    Fixed in 1.7.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.3.2-14
  3. Upgrade

    Upgrade HashiCorp go-getter to a version that resolves this vulnerability.

    Fixed in 1.7.4

Event History

Apr 17, 2024
CVE Published
via MITRE·07:37 PM
Data Sourced
via MITRE·07:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
Affected Software
Advisory Published
via GitHub·09:30 PM
Apr 22, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-3817?

CVE-2024-3817 is classified as a moderate severity vulnerability due to potential argument injection that could lead to unintended command execution.

2

How do I fix CVE-2024-3817?

To fix CVE-2024-3817, upgrade the go-getter package to version 1.7.4 or higher, as the vulnerability does not affect versions starting from 1.7.4.

3

What software is affected by CVE-2024-3817?

CVE-2024-3817 affects the go-getter package versions between 1.5.9 and 1.7.4, excluding version 1.7.4.

4

What type of vulnerability is CVE-2024-3817?

CVE-2024-3817 is an argument injection vulnerability that occurs when executing Git commands to interact with remote branches.

5

Is there a way to test for CVE-2024-3817 in my environment?

You can test for CVE-2024-3817 by checking the version of the go-getter package in use and reviewing your usage patterns for Git operations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203