ADVISORIES

Go Vulnerability Database

GO-2022-0586

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.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/hashicorp/go-getter
All versions before 1.6.1 (fixed in 1.6.1)
Gogithub.com/hashicorp/go-getter/v2
All versions before 2.1.0 (fixed in 2.1.0)
Gogithub.com/hashicorp/go-getter/s3/v2
All versions before 2.1.0 (fixed in 2.1.0)
Gogithub.com/hashicorp/go-getter/gcs/v2
All versions before 2.1.0 (fixed in 2.1.0)

References