{"id":"CVE-2024-6104","published":"2024-06-24T17:06:21Z","modified":"2024-08-01T21:33:04Z","title":"go-retryablehttp can leak basic auth credentials to log files","vendor":"HashiCorp","product":"Shared library","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00309,"percentile":0.16168,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://discuss.hashicorp.com/c/security","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":3.23},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"hashicorp","affectedVersions":[{"vendor":"HashiCorp","product":"Shared library","versions":["< 0.7.7"]}],"capec":[{"id":"CAPEC-118","name":"Collect and Analyze Information"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-24T19:19:22.878144Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/hashicorp/go-retryablehttp","vulnerableRanges":["<0.7.7"],"patched":["0.7.7"],"from":["GHSA-v6v8-xj6m-xwqh","GO-2024-2947"],"provenance":"source"}],"summary":{"text":"The go-retryablehttp shared library, a Go HTTP client library from HashiCorp, fails to sanitize URLs before writing them to its log file, so sensitive HTTP basic auth credentials can be recorded there. Exploiting it requires local access to read the log file, and the vector encodes high privileges required, so an attacker must already hold elevated access on the affected system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:03:36Z"},"euvd":{"id":"EUVD-2024-2173","exploited":false,"provenance":"source"}}