CVE-2022-30323
JSON

8.6high

HashiCorp go-getter unsafe downloads could lead to asymmetric resource exhaustion

Severity
8.6high CVSS:3.1 by NVD
Exploit likelihood
1.46% (higher than 74% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-28r2-q6m8-9hpxGHSA-cjr4-fv6c-f3mvGHSA-fcgg-rvwg-jv58GHSA-x24g-9w7v-vprhGO-2022-0586

Description

go-getter up to 1.5.11 and 2.0.2 panicked when processing password-protected ZIP files. Fixed in 1.6.1 and 2.1.0.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/hashicorp/go-getter (Go)before 1.6.1, from 2.0.0 before 2.1.0GitHub Advisory Database, Go Vulnerability Database
github.com/hashicorp/go-getter/v2 (Go)before 2.1.0GitHub Advisory Database, Go Vulnerability Database
github.com/hashicorp/go-getter/s3/v2 (Go)before 2.1.0GitHub Advisory Database, Go Vulnerability Database
github.com/hashicorp/go-getter/gcs/v2 (Go)before 2.1.0GitHub Advisory Database, Go Vulnerability Database
hashicorp go-getterup to 1.5.11, 2.0.2NVD

All scores

GitHub8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.6high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

go-getter up to 1.5.11 and 2.0.2 panicked when processing password-protected ZIP files. Fixed in 1.6.1 and 2.1.0.

GitHub Advisory Database

HashiCorp go-getter through 2.0.2 does not safely perform downloads. Asymmetric resource exhaustion could occur when go-getter processed malicious HTTP responses.

GitHub Advisory Database

HashiCorp go-getter through 2.0.2 does not safely perform downloads. Arbitrary host access was possible via go-getter path traversal, symlink processing, and command injection flaws.

GitHub Advisory Database

HashiCorp go-getter through 2.0.2 does not safely perform downloads. Protocol switching, endless redirect, and configuration bypass were possible via abuse of custom HTTP response header processing.

GitHub Advisory Database

HashiCorp go-getter before 2.0.2 allows Command Injection.

Go Vulnerability Database

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.

NVD (es)

go-getter hasta 1.5.11 y 2.0.2 entraba en pánico al procesar archivos ZIP protegidos por contraseña. Corregido en 1.6.1 y 2.1.0

References

https://discuss.hashicorp.comvendor-advisory, web
https://github.com/hashicorp/go-getter/releasesrelease-notes, third-party-advisory, web
https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/39930advisory, vendor-advisory, web
https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-library/vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2022-30323advisory
https://github.com/hashicorp/go-getter/pull/359web
https://github.com/hashicorp/go-getter/pull/361fix, web
https://github.com/hashicorp/go-getter/commit/38e97387488f5439616be60874979433a12edb48fix, web
https://github.com/hashicorp/go-getter/commit/a2ebce998f8d4105bd4b78d6c99a12803ad97a45web
https://discuss.hashicorp.com/t/hcsec-2022-13-multiple-vulnerabilities-in-go-getter-libraryweb
https://github.com/hashicorp/go-getterpackage
https://pkg.go.dev/vuln/GO-2022-0586web

Related

Sources

SourceRecordLicence
CVE ListCVE-2022-30323 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-28r2-q6m8-9hpx changed 2024-05-20CC-BY-4.0
GitHub Advisory DatabaseGHSA-cjr4-fv6c-f3mv changed 2024-05-20CC-BY-4.0
GitHub Advisory DatabaseGHSA-fcgg-rvwg-jv58 changed 2024-03-15CC-BY-4.0
GitHub Advisory DatabaseGHSA-x24g-9w7v-vprh changed 2024-03-15CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0586 changed 2024-05-20CC-BY-4.0
NVDCVE-2022-30323 changed 2026-06-17Public domain