{"id":"CVE-2024-6104","summary":"go-retryablehttp can leak basic auth credentials to log files","details":"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.","aliases":["GHSA-v6v8-xj6m-xwqh","GO-2024-2947"],"modified":"2026-05-12T03:52:52.265296Z","published":"2024-06-24T17:06:21.150Z","related":["ALSA-2024:5258","ALSA-2024:6194","ALSA-2024:9098","ALSA-2024:9115","CGA-4cjm-rhx9-jc8w","SUSE-RU-2025:02091-1","SUSE-RU-2025:02092-1","SUSE-RU-2025:02093-1","SUSE-SU-2024:2273-1","SUSE-SU-2024:2273-2","SUSE-SU-2024:2286-1","SUSE-SU-2024:3062-1","SUSE-SU-2024:3266-1","SUSE-SU-2024:3267-1","SUSE-SU-2024:3288-1","SUSE-SU-2024:3546-1","SUSE-SU-2025:0420-1","SUSE-SU-2025:0458-1","SUSE-SU-2025:0579-1","SUSE-SU-2025:0775-1","SUSE-SU-2025:1036-1","SUSE-SU-2025:1037-1","SUSE-SU-2025:1038-1","SUSE-SU-2025:1332-1","SUSE-SU-2025:1333-1","SUSE-SU-2025:20013-1","SUSE-SU-2025:20080-1","SUSE-SU-2025:20143-1","SUSE-SU-2025:20179-1","SUSE-SU-2025:20198-1","SUSE-SU-2025:20363-1","SUSE-SU-2025:20869-1","openSUSE-SU-2024:0226-1","openSUSE-SU-2024:0227-1","openSUSE-SU-2024:14092-1","openSUSE-SU-2024:14102-1","openSUSE-SU-2024:14105-1","openSUSE-SU-2024:14211-1","openSUSE-SU-2024:14257-1","openSUSE-SU-2024:14258-1","openSUSE-SU-2025:14663-1","openSUSE-SU-2025:14988-1","openSUSE-SU-2025:14990-1","openSUSE-SU-2025:15052-1"],"database_specific":{"cna_assigner":"HashiCorp","cwe_ids":["CWE-532"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6104.json"},"references":[{"type":"WEB","url":"https://discuss.hashicorp.com/c/security"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6104.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6104"},{"type":"PACKAGE","url":"https://github.com/hashicorp/go-retryablehttp"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/hashicorp/go-retryablehttp","events":[{"introduced":"0"},{"fixed":"1542b31176d3973a6ecbc06c05a2d0df89b59afb"}]}],"versions":["v0.5.0","v0.5.1","v0.5.2","v0.5.3","v0.5.4","v0.6.0","v0.6.1","v0.6.2","v0.6.3","v0.6.4","v0.6.5","v0.6.6","v0.6.7","v0.6.8","v0.7.0","v0.7.1","v0.7.2","v0.7.3","v0.7.4","v0.7.5","v0.7.6"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-6104.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N"}]}