CVE-2024-6104: go-retryablehttp can leak basic auth credentials to log files
go-retryablehttp can leak basic auth credentials to log files
Other sources
go-retryablehttp could allow a local authenticated attacker to obtain sensitive information, caused by the failure to sanitize urls when writing them to its log file. An attacker could exploit this vulnerability to write sensitive HTTP basic auth credentials to its log file.
— IBM
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.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/github.com/hashicorp/go-retryablehttpto a version that resolves this vulnerability.Fixed in 0.7.7 - Upgrade
Upgrade
redhat/go-retryablehttpto a version that resolves this vulnerability.Fixed in 0.7.7 - Upgrade
Upgrade
go-retryablehttpto a version that resolves this vulnerability.Fixed in 0.7.7Patch CVE-2024-6104
Event History
Frequently Asked Questions
What is the severity of CVE-2024-6104?
CVE-2024-6104 has a medium severity, as it can lead to the exposure of sensitive information.
How do I fix CVE-2024-6104?
To fix CVE-2024-6104, upgrade to the version 0.7.7 or later of the go-retryablehttp library.
What type of attacker can exploit CVE-2024-6104?
CVE-2024-6104 can be exploited by a local authenticated attacker with access to the log files.
What information could be exposed due to CVE-2024-6104?
CVE-2024-6104 could expose sensitive HTTP basic authentication credentials written to the log file.
Which applications are affected by CVE-2024-6104?
CVE-2024-6104 affects Hashicorp Retryablehttp library versions up to 0.7.7 and related packages.