6.0medium
go-retryablehttp can leak basic auth credentials to log files
- Severity
- 6.0medium CVSS:3.1 by HashiCorp
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- HashiCorp
- Also known as
- GHSA-v6v8-xj6m-xwqhGO-2024-2947
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
| Product or package | Versions | Reported by |
|---|---|---|
| HashiCorp Shared library | before 0.7.7 | CVE List |
| github.com/hashicorp/go-retryablehttp (Go) | before 0.7.7 | GitHub Advisory Database, Go Vulnerability Database |
| hashicorp retryablehttp | before 0.7.7 | NVD |
All scores
| HashiCorp | 6.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 6.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
Go Vulnerability Database
URLs were not sanitized when writing them to log files. This could lead to writing sensitive HTTP basic auth credentials to the log file.
NVD (es)
go-retryablehttp anterior a 0.7.7 no sanitizaba las URL al escribirlas en su archivo de registro. Esto podría llevar a que go-retryablehttp escriba credenciales de autenticación básicas HTTP confidenciales en su archivo de registro. Esta vulnerabilidad, CVE-2024-6104, se solucionó en go-retryablehttp 0.7.7.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-6104 changed 2024-08-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v6v8-xj6m-xwqh changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2947 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2024-6104 changed 2026-06-17 | Public domain |