CVE-2024-6104
JSON

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 packageVersionsReported by
HashiCorp Shared librarybefore 0.7.7CVE List
github.com/hashicorp/go-retryablehttp (Go)before 0.7.7GitHub Advisory Database, Go Vulnerability Database
hashicorp retryablehttpbefore 0.7.7NVD

All scores

HashiCorp6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
GitHub6.0medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-532

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

SourceRecordLicence
CVE ListCVE-2024-6104 changed 2024-08-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-v6v8-xj6m-xwqh changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2024-2947 changed 2026-02-04CC-BY-4.0
NVDCVE-2024-6104 changed 2026-06-17Public domain