CVE-2023-0475:
Data Amplification in HashiCorp go-getter
4.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.21011%
CWE
Published
2/16/2023
Updated
5/20/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/hashicorp/go-getter | go | < 1.7.0 | 1.7.0 |
github.com/hashicorp/go-getter/v2 | go | >= 2.0.0, < 2.2.0 | 2.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from decompressors not enforcing size/count limits. The patch added FileSizeLimit and FilesLimit fields to all decompressor structs and passed them to untar/copyReader functions. Vulnerable versions used default Decompressors map created via init() with new() constructors that didn't set these limits, making their Decompress methods process input without resource constraints. The affected functions are the Decompress methods of all compression-type specific decompressors that handle archive processing.