# CVE-2022-30322: GO-2022-0586 - Resource exhaustion in github.com/hashicorp/go-getter and related modules

Source: https://junglewise.ai/threats/cve-2022-26945-hashicorp-go-getter-unsafe-downloads-could-lead-to-asymmetric  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-26  
License: CC BY 4.0 with a link back

CVE-2022-30322 · Severity: low · CVSS 3.1 · Published 2022-05-26

Resource exhaustion in github.com/hashicorp/go-getter and related modules

Technologies: [github.com/hashicorp/go-getter (Go)](https://junglewise.ai/threats/technologies/github-com-hashicorp-go-getter). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-30322 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-30322 being exploited in the wild.

**How severe is CVE-2022-30322?** Low severity, with a CVSS score of 3.1, published 26 May 2022.

**Which products and versions are affected?** github.com/hashicorp/go-getter (Go) SEMVER:introduced=0,fixed=1.6.1; github.com/hashicorp/go-getter/gcs/v2 (Go) SEMVER:introduced=0,fixed=2.1.0; github.com/hashicorp/go-getter/s3/v2 (Go) SEMVER:introduced=0,fixed=2.1.0; github.com/hashicorp/go-getter/v2 (Go) SEMVER:introduced=0,fixed=2.1.0.

**Is there a fix for CVE-2022-30322?** Yes. github.com/hashicorp/go-getter (Go): upgrade to 1.6.1 or later; github.com/hashicorp/go-getter/gcs/v2 (Go): upgrade to 2.1.0 or later; github.com/hashicorp/go-getter/s3/v2 (Go): upgrade to 2.1.0 or later; github.com/hashicorp/go-getter/v2 (Go): upgrade to 2.1.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-30322?** Check whether you run github.com/hashicorp/go-getter (Go), github.com/hashicorp/go-getter/gcs/v2 (Go), github.com/hashicorp/go-getter/s3/v2 (Go) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/hashicorp/go-getter (Go): upgrade to 1.6.1 or later

  ```sh
  go get github.com/hashicorp/go-getter@v1.6.1
  ```

- github.com/hashicorp/go-getter/gcs/v2 (Go): upgrade to 2.1.0 or later

  ```sh
  go get github.com/hashicorp/go-getter/gcs/v2@v2.1.0
  ```

- github.com/hashicorp/go-getter/s3/v2 (Go): upgrade to 2.1.0 or later

  ```sh
  go get github.com/hashicorp/go-getter/s3/v2@v2.1.0
  ```

- github.com/hashicorp/go-getter/v2 (Go): upgrade to 2.1.0 or later

  ```sh
  go get github.com/hashicorp/go-getter/v2@v2.1.0
  ```


## Affected products

- github.com/hashicorp/go-getter (Go) SEMVER:introduced=0,fixed=1.6.1
- github.com/hashicorp/go-getter/gcs/v2 (Go) SEMVER:introduced=0,fixed=2.1.0
- github.com/hashicorp/go-getter/s3/v2 (Go) SEMVER:introduced=0,fixed=2.1.0
- github.com/hashicorp/go-getter/v2 (Go) SEMVER:introduced=0,fixed=2.1.0

## Identifiers

- CVE-2022-30322
- CVE-2022-26945
- CVE-2022-30323
- CVE-2022-30321
- GHSA-28r2-q6m8-9hpx
- GHSA-cjr4-fv6c-f3mv
- GHSA-fcgg-rvwg-jv58
- GHSA-x24g-9w7v-vprh
- GO-2022-0586

## Related threats

- [HashiCorp go-getter arbitrary file read via argument injection in Git URLs](https://junglewise.ai/threats/cve-2026-4660-hashicorp-go-getter-arbitrary-file-read-via-argument-injection-in)
- [GO-2025-3892 - HashiCorp go-getter Vulnerable to Symlink Attacks in github.com/hashicorp/go-getter](https://junglewise.ai/threats/cve-2025-8959-hashicorp-go-getter-vulnerable-to-symlink-attacks)
- [GO-2024-2948 - Code Execution on Git update in github.com/hashicorp/go-getter](https://junglewise.ai/threats/cve-2024-6257-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via)
- [GO-2024-2800 - Argument injection when fetching remote default Git branches in github.com/hashicorp/go-getter](https://junglewise.ai/threats/cve-2024-3817-hashicorp-go-getter-vulnerable-to-argument-injection-when-fetching)
- [GO-2023-1578 - Denial of service in github.com/hashicorp/go-getter/v2](https://junglewise.ai/threats/cve-2023-0475-data-amplification-in-hashicorp-go-getter)
