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

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.

Published: 2024-06-24 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-6104 is rated Low Risk (33.9/100): CVSS Medium severity, with low exploitation likelihood (EPSS 0.36%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2024-6104

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.04% 0.36% +0.31%
2 2025-11-21 0.05% 0.04% -0.01%
3 2025-11-18 0.05%

Full EPSS history (6 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-6104

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
6.0 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.5 4.0 [email protected]
5.5 3.1 MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.8 3.6 [email protected]

Weakness enumeration for CVE-2024-6104

GitHub Security Advisory for CVE-2024-6104

GHSA-v6v8-xj6m-xwqh · Severity: medium · Ecosystem: go — go-retryablehttp can leak basic auth credentials to log files

OS Trackers for CVE-2024-6104

vendor priority summary link
debian not yet assigned CVE-2024-6104 not yet assigned priority: Debian including 1 source packages (golang-github-hashicorp-go-retryablehttp), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 5. https://security-tracker.debian.org/tracker/CVE-2024-6104
redhat medium https://access.redhat.com/security/cve/CVE-2024-6104
suse medium CVE-2024-6104 severity moderate: SUSE including 384 source package names (2.0.4-5.5.313:podman-4.9.5-150500.3.43.2, 2.1.3-6.94:coreutils-9.4-slfo.1.1_2.1, …), 605 product×package rows across 98 product lines (Container suse/cosign, Container suse/sl-micro/6.0/baremetal-os-container, … (98 product lines)): Fixed 372, Known Affected 231, Known Not Affected 2. https://www.suse.com/security/cve/CVE-2024-6104/
ubuntu medium CVE-2024-6104 medium priority: Ubuntu including 1 source packages (golang-github-hashicorp-go-retryablehttp), 8 status rows across 8 suites (bionic, focal, jammy, noble, oracular, plucky, questing, upstream): needed 5, ignored 2, released 1. https://ubuntu.com/security/CVE-2024-6104

Affected software / configurations for CVE-2024-6104

Vendor Product Version Raw CPE
hashicorp retryablehttp < 0.7.7 cpe:2.3:a:hashicorp:retryablehttp:*:*:*:*:*:go:*:*

References for CVE-2024-6104

URL Tags
https://discuss.hashicorp.com/c/security Vendor Advisory
cvelogic Threat Intelligence