{"answers":{"affected":"3 open source packages ship an affected version, including github.com/hashicorp/go-retryablehttp. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-6104 in the wild and no public exploit code.","fix":"Upgrade github.com/hashicorp/go-retryablehttp to 0.7.7 or later.","what":"CVE-2024-6104 is a medium-severity vulnerability in HashiCorp Shared library, published on 24 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6104 and fix it if it is affected.\n\nWhat it is: CVE-2024-6104 is a medium-severity vulnerability in HashiCorp Shared library, published on 24 Jun 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-6104 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/hashicorp/go-retryablehttp (Go): affected all versions; fixed in 0.7.7\n- github.com/hashicorp/go-retryablehttp (Go): affected all versions; fixed in 0.7.7\n- github.com/hashicorp/go-retryablehttp (Go): affected all versions; fixed in 0.7.7\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6104/ (Markdown: https://insights.sbomify.com/CVE-2024-6104/index.md)","id":"CVE-2024-6104","markdown":"https://insights.sbomify.com/CVE-2024-6104/index.md","name":"CVE-2024-6104","record":{"aliases":["AZL-42874","AZL-42877","AZL-42880","AZL-42886","AZL-42892","AZL-42898","AZL-42904","AZL-42910","AZL-42913","AZL-42916","AZL-42922","AZL-42928","AZL-42931","AZL-42936","AZL-42942","AZL-42943","CLEANSTART-2026-IX15108","CLEANSTART-2026-KQ47565","DEBIAN-CVE-2024-6104","GHSA-v6v8-xj6m-xwqh","GO-2024-2947","MINI-2m2r-r896-x54h","MINI-7366-4j7w-cjwv","MINI-83r2-4xmp-xrfv","MINI-mjq4-2q9v-x2xx","MINI-rgh4-pcrr-5r6c","MINI-vmpq-vx92-fvq9","MINI-vqpj-g58c-8jw6","SUSE-SU-2024:2273-1","SUSE-SU-2024:2273-2","SUSE-SU-2024:2286-1","SUSE-SU-2024:3062-1","UBUNTU-CVE-2024-6104","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"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go HTTP client library","requires_auth":"high_privilege","summary":"An attacker with log access can read sensitive HTTP basic auth credentials leaked by the go-retryablehttp library.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"HashiCorp","cpe":[{"product":"retryablehttp","vendor":"hashicorp"}],"cvss":{"score":6,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"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.","ecosystems":["Go","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Containers 15 SP5","SUSE:Linux Enterprise Module for Containers 15 SP6","SUSE:Package Hub 15 SP5","SUSE:Package Hub 15 SP6","openSUSE:Leap 15.5","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"go-retryablehttp can leak basic auth credentials to log files","id":"CVE-2024-6104","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":23,"n_references":1,"next":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2024-6105"},"packages":[{"ecosystem":"Go","fixed":["0.7.7"],"introduced":["0"],"last_affected":[],"package":"github.com/hashicorp/go-retryablehttp","purl":null,"source":"GHSA-v6v8-xj6m-xwqh"},{"ecosystem":"Go","fixed":["0.7.7"],"introduced":["0"],"last_affected":[],"package":"github.com/hashicorp/go-retryablehttp","purl":"pkg:golang/github.com/hashicorp/go-retryablehttp","source":"GHSA-v6v8-xj6m-xwqh"},{"ecosystem":"Go","fixed":["0.7.7"],"introduced":["0"],"last_affected":[],"package":"github.com/hashicorp/go-retryablehttp","purl":"pkg:golang/github.com/hashicorp/go-retryablehttp","source":"GO-2024-2947"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["4.9.5-150300.9.34.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2024:3062-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["4.9.5-150300.9.34.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2024:3062-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["4.9.5-150300.9.34.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2024:3062-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["4.9.5-150400.4.30.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:2273-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["4.9.5-150400.4.30.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2024:2273-2"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["4.9.5-150400.4.30.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:2273-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["4.9.5-150400.4.30.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2024:2273-2"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["4.9.5-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2024:2286-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP5","fixed":["4.9.5-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP5","source":"SUSE-SU-2024:2286-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP6","fixed":["4.9.5-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/suse/podman\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP6","source":"SUSE-SU-2024:2286-1"},{"ecosystem":"SUSE:Package Hub 15 SP5","fixed":["2.53.0-bp155.2.12.1"],"introduced":["0"],"last_affected":[],"package":"gh","purl":"pkg:rpm/suse/gh\u0026distro=SUSE%20Package%20Hub%2015%20SP5","source":"openSUSE-SU-2024:0227-1"},{"ecosystem":"SUSE:Package Hub 15 SP6","fixed":["2.53.0-bp156.2.6.1"],"introduced":["0"],"last_affected":[],"package":"gh","purl":"pkg:rpm/suse/gh\u0026distro=SUSE%20Package%20Hub%2015%20SP6","source":"openSUSE-SU-2024:0226-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["2.53.0-bp155.2.12.1"],"introduced":["0"],"last_affected":[],"package":"gh","purl":"pkg:rpm/opensuse/gh\u0026distro=openSUSE%20Leap%2015.5","source":"openSUSE-SU-2024:0227-1"},{"ecosystem":"openSUSE:Leap 15.5","fixed":["4.9.5-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/opensuse/podman\u0026distro=openSUSE%20Leap%2015.5","source":"SUSE-SU-2024:2286-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["2.53.0-bp156.2.6.1"],"introduced":["0"],"last_affected":[],"package":"gh","purl":"pkg:rpm/opensuse/gh\u0026distro=openSUSE%20Leap%2015.6","source":"openSUSE-SU-2024:0226-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["4.9.5-150500.3.15.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/opensuse/podman\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2024:2286-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.53.0-1.1"],"introduced":["0"],"last_affected":[],"package":"gh","purl":"pkg:rpm/opensuse/gh\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14211-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.53.0-2.1"],"introduced":["0"],"last_affected":[],"package":"golang-github-prometheus-prometheus","purl":"pkg:rpm/opensuse/golang-github-prometheus-prometheus\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14092-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.1.1-2.1"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/opensuse/podman\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14102-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["15.4.7-1.1"],"introduced":["0"],"last_affected":[],"package":"teleport","purl":"pkg:rpm/opensuse/teleport\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14105-1"}],"prev":{"headline":"Use after free in Chrome","id":"CVE-2024-6103"},"products":["Shared library"],"published":"2024-06-24","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["HashiCorp"]},"summary":"An attacker with log access can read sensitive HTTP basic auth credentials leaked by the go-retryablehttp library.","url":"https://insights.sbomify.com/CVE-2024-6104/"}