{"schema_version":"1.7.3","id":"GHSA-v6v8-xj6m-xwqh","published":"2024-06-24T18:31:37Z","modified":"2026-02-04T03:44:19.715411Z","aliases":["CVE-2024-6104","GO-2024-2947"],"related":["CGA-4cjm-rhx9-jc8w"],"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.","affected":[{"package":{"name":"github.com/hashicorp/go-retryablehttp","ecosystem":"Go","purl":"pkg:golang/github.com/hashicorp/go-retryablehttp"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.7.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-v6v8-xj6m-xwqh/GHSA-v6v8-xj6m-xwqh.json"}}],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6104"},{"type":"WEB","url":"https://github.com/hashicorp/go-retryablehttp/commit/a99f07beb3c5faaa0a283617e6eb6bcf25f5049a"},{"type":"WEB","url":"https://discuss.hashicorp.com/c/security"},{"type":"WEB","url":"https://discuss.hashicorp.com/t/hcsec-2024-12-go-retryablehttp-can-leak-basic-auth-credentials-to-log-files/68027"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-v6v8-xj6m-xwqh"},{"type":"PACKAGE","url":"https://github.com/hashicorp/go-retryablehttp"}],"database_specific":{"cwe_ids":["CWE-532"],"github_reviewed":true,"github_reviewed_at":"2024-06-24T21:32:07Z","nvd_published_at":"2024-06-24T17:15:11Z","severity":"MODERATE"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N"}]}