CVE-2022-29810: Insertion of Sensitive Information into Log File in Hashicorp go-getter
5.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.16088%
CWE
Published
4/28/2022
Updated
2/9/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/hashicorp/go-getter | go | < 1.5.11 | 1.5.11 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the RedactURL()
function's incomplete redaction logic prior to the patch. The commit 36b68b2 specifically modifies this function to add query parameter redaction for 'sshkey'. The vulnerability manifests when this function is called to sanitize URLs for logging purposes, particularly in error handling scenarios. The function's pre-patch version only handled password redaction in userinfo portions of URLs but didn't address sensitive query parameters, making it the clear vulnerable entry point.