{"id":"CVE-2024-6104","aliases":["CVE-2024-6104","GHSA-v6v8-xj6m-xwqh","GO-2024-2947"],"related":["CGA-4cjm-rhx9-jc8w"],"kind":"vulnerability","state":"published","title":"go-retryablehttp can leak basic auth credentials to log files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"URLs were not sanitized when writing them to log files. This could lead to writing sensitive HTTP basic auth credentials to the log file.","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-06-24T17:06:21.150Z","modified":"2026-09-10T03:50:15.841Z","severity":{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"HashiCorp","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.7.7","status":"affected"}],"vendor":"HashiCorp","product":"Shared library","repo":"https://github.com/hashicorp/go-retryablehttp","platforms":["64 bit","32 bit","x86","ARM","MacOS","Windows","Linux"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.7"}],"ecosystem":"Go","package":"github.com/hashicorp/go-retryablehttp","purl":"pkg:golang/github.com/hashicorp/go-retryablehttp","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.7"}],"ecosystem":"Go","package":"github.com/hashicorp/go-retryablehttp","purl":"pkg:golang/github.com/hashicorp/go-retryablehttp","source":"go"},{"ranges":[{"status":"affected","fixed":"0.7.7"}],"vendor":"hashicorp","product":"retryablehttp","cpe":"cpe:2.3:a:hashicorp:retryablehttp:*:*:*:*:*:go:*:*","source":"nvd"}],"references":[{"url":"https://discuss.hashicorp.com/c/security","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6104","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/hashicorp/go-retryablehttp/commit/a99f07beb3c5faaa0a283617e6eb6bcf25f5049a","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://discuss.hashicorp.com/t/hcsec-2024-12-go-retryablehttp-can-leak-basic-auth-credentials-to-log-files/68027","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/advisories/GHSA-v6v8-xj6m-xwqh","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/hashicorp/go-retryablehttp","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"HashiCorp","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-06-24T19:19:22.878Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6104","url":"https://www.cve.org/CVERecord?id=CVE-2024-6104","licence":"CVE Terms of Use","modified":"2024-08-01T21:33:04.395Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v6v8-xj6m-xwqh","url":"https://github.com/advisories/GHSA-v6v8-xj6m-xwqh","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:15.841Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2947","url":"https://pkg.go.dev/vuln/GO-2024-2947","licence":"CC-BY-4.0","modified":"2026-02-04T04:30:23.096Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6104","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6104","licence":"Public domain","modified":"2026-06-17T08:17:17.860Z"}],"updatedAt":"2026-11-25T22:58:42.174Z","epss":{"score":0.00358,"percentile":0.31531,"date":"2026-12-01T12:00:22.000Z"}}