CVE-2024-6104: go-retryablehttp can leak basic auth credentials to log files

Published Jun 24, 2024
·
Updated

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

36 affected componentsFixes available
go/github.com/hashicorp/go-retryablehttp<0.7.7
0.7.7
HashiCorp Retryablehttp Go<0.7.7
IBM Concert Software<=1.0.0, 1.0.1, 1.0.2, 1.0.2.1, 1.0.3
redhat/go-retryablehttp<0.7.7
0.7.7
Microsoft azl3 skopeo 1.14.4-5
Microsoft azl3 prometheus 2.45.4-12
Microsoft azl3 packer 1.9.5-9
Microsoft cbl2 influxdb 2.6.1-22
Microsoft cbl2 keda 2.4.0-29
Microsoft cbl2 cert-manager 1.11.2-22
Microsoft cbl2 terraform 1.3.2-25
Microsoft cbl2 packer 1.9.5-12
Microsoft cbl2 cri-o 1.22.3-14
Microsoft cbl2 rook 1.6.2-26
Microsoft azl3 influxdb 2.7.5-5
Microsoft cbl2 prometheus 2.37.9-4
Microsoft azl3 influxdb 2.7.3-5
Microsoft azl3 libcontainers-common 20240213-2
Microsoft azl3 skopeo 1.14.4-2
Microsoft azl3 keda 2.14.1-7
Microsoft azl3 libcontainers-common 20240213-3
Microsoft cbl2 terraform 1.3.2-25
Microsoft cbl2 skopeo 1.14.2-10
Microsoft azl3 cert-manager 1.12.12-3
Microsoft azl3 packer 1.9.5-2
Microsoft azl3 keda 2.14.0-2
Microsoft cbl2 skopeo 1.14.2-7
Microsoft azl3 prometheus 2.45.4-3
Microsoft cbl2 cert-manager 1.11.2-12
Microsoft cbl2 cri-o 1.22.3-6
Microsoft cbl2 prometheus 2.37.0-14
Microsoft cbl2 keda 2.4.0-22
Microsoft cbl2 packer 1.9.5-2
Microsoft cbl2 terraform 1.3.2-17
Microsoft cbl2 influxdb 2.6.1-15
Microsoft cbl2 rook 1.6.2-21

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/hashicorp/go-retryablehttp to a version that resolves this vulnerability.

    Fixed in 0.7.7
  2. Upgrade

    Upgrade redhat/go-retryablehttp to a version that resolves this vulnerability.

    Fixed in 0.7.7
  3. Upgrade

    Upgrade go-retryablehttp to a version that resolves this vulnerability.

    Fixed in 0.7.7Patch CVE-2024-6104

Event History

Jun 24, 2024
CVE Published
via MITRE·05:06 PM
Data Sourced
via MITRE·05:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·06:31 PM
Data Sourced
via Red Hat·09:41 PM
DescriptionSeverityAffected Software
Aug 5, 2024
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

5

Which applications are affected by CVE-2024-6104?

CVE-2024-6104 affects Hashicorp Retryablehttp library versions up to 0.7.7 and related packages.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203