Advisory

GO-2022-0586

Also known as: CVE-2022-26945, CVE-2022-30321, CVE-2022-30322, CVE-2022-30323, GHSA-28r2-q6m8-9hpx, GHSA-cjr4-fv6c-f3mv, GHSA-fcgg-rvwg-jv58, GHSA-x24g-9w7v-vprh

Summary

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

Details

Malicious HTTP responses can cause a number of misbehaviors, including overwriting local files, resource exhaustion, and panics.

  • Protocol switching, endless redirect, and configuration bypass are possible through abuse of custom HTTP response header processing.
  • Arbitrary host access is possible through go-getter path traversal, symlink processing, and command injection flaws.
  • Asymmetric resource exhaustion can occur when go-getter processes malicious HTTP responses.
  • A panic can be triggered when go-getter processed password-protected ZIP files.

Severity

Not rated by the source.

Dates

Published
2022-05-26 00:01 UTC
Modified
2024-05-20 16:03 UTC

Affected packages and fixes

github.com/hashicorp/go-getter

Go · All systems

Affected

  • introduced 0, fixed 1.6.1 (semver)

Fixed versions

1.6.1

Fix

github.com/hashicorp/go-getter/v2

Go · All systems

Affected

  • introduced 0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

github.com/hashicorp/go-getter/s3/v2

Go · All systems

Affected

  • introduced 0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

github.com/hashicorp/go-getter/gcs/v2

Go · All systems

Affected

  • introduced 0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences