CVE-2024-6104
MEDIUM 5.5CVSS 3.1go-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
- 24 Jun 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@hashicorp.com
- NVD status
- Modified
- Weakness
- CWE-532
- Also known as
- GHSA-v6v8-xj6m-xwqhGO-2024-2947
- Sources
- NVDJSONOSV GHSA-v6v8-xj6m-xwqhJSONOSV GO-2024-2947JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@hashicorp.com (Secondary) | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.0 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hashicorp | retryablehttpcpe:2.3:a:hashicorp:retryablehttp:*:*:*:*:*:go:*:* |
< 0.7.7 | 0.7.7 |
| OSV | Go | github.com/hashicorp/go-retryablehttp | < 0.7.7 | 0.7.7 |
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 · WEB, FIX
- 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
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 24 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 Jun 2024)