VDB
Sign up
MEDIUM6.0

GHSA-v6v8-xj6m-xwqh

go-retryablehttp can leak basic auth credentials to log files

Quick fix

GHSA-v6v8-xj6m-xwqh — github.com/hashicorp/go-retryablehttp: upgrade to the fixed version with the command below.

go get github.com/hashicorp/go-retryablehttp@v0.7.7

Details

go-retryablehttp prior to 0.7.7 did not sanitize urls when writing them to its log file. This could lead to go-retryablehttp writing sensitive HTTP basic auth credentials to its log file. This vulnerability, CVE-2024-6104, was fixed in go-retryablehttp 0.7.7.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/hashicorp/go-retryablehttp
Introduced in: 0Fixed in: 0.7.7
Fixgo get github.com/hashicorp/go-retryablehttp@v0.7.7

References