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

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). 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
    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
    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
    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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.