Vulnerability · Published Jun 24, 2024 · Assigned by HashiCorp

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

Medium 6.0

In plain English

A medium-severity sensitive data in logs in Shared library from HashiCorp. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 30% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.0Medium
Exploit odds (30 days)0.4%top 70.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8aardvark-dns2:1.10.0-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8buildah2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8buildah-tests2:1.33.8-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8cockpit-podman84.1-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8conmon3:2.1.10-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8container-selinux2:2.229.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8containernetworking-plugins1:1.4.0-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8containers-common2:1-82.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crit3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8crit3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8criu3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8criu-devel3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8criu-libs3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8crun1.14.3-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3859+6ae70a0eALSA-2024:5258
AlmaLinux:8fuse-overlayfs1.13-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:9grafana10.2.6-4.el9ALSA-2024:9115
AlmaLinux:9grafana-selinux10.2.6-4.el9ALSA-2024:9115
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8libslirp4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8libslirp-devel4.4.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8netavark2:1.10.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3792+03eaed9cALSA-2024:5258
AlmaLinux:8oci-seccomp-bpf-hook1.2.10-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman4:4.9.4-10.el9_4ALSA-2024:6194
AlmaLinux:8podman-catatonit4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-docker4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-docker4:4.9.4-10.el9_4ALSA-2024:6194
AlmaLinux:8podman-gvproxy4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8podman-plugins4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-plugins4:4.9.4-10.el9_4ALSA-2024:6194
AlmaLinux:8podman-remote4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-remote4:4.9.4-10.el9_4ALSA-2024:6194
AlmaLinux:8podman-tests4:4.9.4-12.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9podman-tests4:4.9.4-10.el9_4ALSA-2024:6194
AlmaLinux:8python3-criu3.18-5.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8python3-podman4.9.0-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8runc1:1.1.12-4.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8skopeo2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9skopeo2:1.16.1-1.el9ALSA-2024:9098
AlmaLinux:8skopeo-tests2:1.14.5-3.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:9skopeo-tests2:1.16.1-1.el9ALSA-2024:9098
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8slirp4netns1.2.3-1.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3876+e55593a8ALSA-2024:5258
AlmaLinux:8toolbox0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3845+87b84552ALSA-2024:5258
AlmaLinux:8toolbox-tests0.0.99.5-2.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
AlmaLinux:8udica0.2.6-21.module_el8.10.0+3858+6ad51f9fALSA-2024:5258
Debian:12golang-github-hashicorp-go-retryablehttpno fix listedDEBIAN-CVE-2024-6104
Debian:13golang-github-hashicorp-go-retryablehttpno fix listedDEBIAN-CVE-2024-6104
Debian:14golang-github-hashicorp-go-retryablehttpno fix listedDEBIAN-CVE-2024-6104
Gogithub.com/hashicorp/go-retryablehttp0.7.7GO-2024-2947
Gogithub.com/hashicorp/go-retryablehttp0.7.7GHSA-v6v8-xj6m-xwqh
Rocky Linux:8aardvark-dns2:1.10.0-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8buildah2:1.33.8-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8cockpit-podman0:84.1-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8conmon3:2.1.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8container-selinux2:2.229.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8containernetworking-plugins1:1.4.0-5.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8containers-common2:1-82.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8criu0:3.18-5.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8crun0:1.14.3-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8fuse-overlayfs0:1.13-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8libslirp0:4.4.0-2.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8netavark2:1.10.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8oci-seccomp-bpf-hook0:1.2.10-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8podman4:4.9.4-12.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8python-podman0:4.9.0-2.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8runc1:1.1.12-4.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8skopeo2:1.14.5-3.module+el8.10.0+1843+6892ab28RLSA-2024:5258
Rocky Linux:8slirp4netns0:1.2.3-1.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Rocky Linux:8toolbox0:0.0.99.5-2.module+el8.10.0+1815+5fe7415e.rocky.0.2.rocky.0.2RLSA-2024:5258
Rocky Linux:8udica0:0.2.6-21.module+el8.10.0+1815+5fe7415eRLSA-2024:5258
Ubuntu:22.04:LTSgolang-github-hashicorp-go-retryablehttpno fix listedUBUNTU-CVE-2024-6104
Ubuntu:24.04:LTSgolang-github-hashicorp-go-retryablehttpno fix listedUBUNTU-CVE-2024-6104
Ubuntu:25.10golang-github-hashicorp-go-retryablehttpno fix listedUBUNTU-CVE-2024-6104
Ubuntu:26.04:LTSgolang-github-hashicorp-go-retryablehttpno fix listedUBUNTU-CVE-2024-6104
Ubuntu:26.10golang-github-hashicorp-go-retryablehttpno fix listedUBUNTU-CVE-2024-6104

Affected products (as reported)

VendorProductVersions
HashiCorp Shared library 0 – before 0.7.7

Weakness: CWE-532 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N

References