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

- Severity: Medium 6.0 (CVSS:3.1, scored by HashiCorp) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Published: 2024-06-24T17:06:21.150Z
- Modified: 2026-09-10T03:50:15.841Z
- Also known as: GHSA-v6v8-xj6m-xwqh, GO-2024-2947
- Related: CGA-4cjm-rhx9-jc8w
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: HashiCorp

## 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.

(As written by CVE List.)

## Affected

- HashiCorp Shared library: before 0.7.7
- github.com/hashicorp/go-retryablehttp (Go): before 0.7.7
- hashicorp retryablehttp: before 0.7.7

## Every score

- HashiCorp: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://discuss.hashicorp.com/c/security> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6104> (advisory)
- <https://github.com/hashicorp/go-retryablehttp/commit/a99f07beb3c5faaa0a283617e6eb6bcf25f5049a> (fix, web)
- <https://discuss.hashicorp.com/t/hcsec-2024-12-go-retryablehttp-can-leak-basic-auth-credentials-to-log-files/68027> (web)
- <https://github.com/advisories/GHSA-v6v8-xj6m-xwqh> (advisory)
- <https://github.com/hashicorp/go-retryablehttp> (package)

## Sources

- CVE List: [CVE-2024-6104](https://www.cve.org/CVERecord?id=CVE-2024-6104), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-v6v8-xj6m-xwqh](https://github.com/advisories/GHSA-v6v8-xj6m-xwqh), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-2947](https://pkg.go.dev/vuln/GO-2024-2947), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2024-6104](https://nvd.nist.gov/vuln/detail/CVE-2024-6104), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-6104 · Whole record: https://cve.day/CVE-2024-6104.json · Rebuilt by cve.day 2026-11-25T22:58:42.174Z
