{"answers":{"affected":"2 open source packages ship an affected version, including golang and toolchain.","exploited":"There is no known exploitation of CVE-2024-45340 in the wild and no public exploit code.","fix":"Upgrade golang to 1.24.0-rc.2 or later.","what":"CVE-2024-45340 is a high-severity vulnerability in cmd/go, published on 28 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-45340 and fix it if it is affected.\n\nWhat it is: CVE-2024-45340 is a high-severity vulnerability in cmd/go, published on 28 Jan 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-45340 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- golang (Bitnami): affected from 1.24.0-0; fixed in 1.24.0-rc.2\n- toolchain (Go): affected from 1.24.0-0; fixed in 1.24.0-rc.2\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-45340/ (Markdown: https://insights.sbomify.com/CVE-2024-45340/index.md)","id":"CVE-2024-45340","markdown":"https://insights.sbomify.com/CVE-2024-45340/index.md","name":"CVE-2024-45340","record":{"aliases":["BIT-golang-2024-45340","DEBIAN-CVE-2024-45340","ECHO-ba36-854d-9ccc","GHSA-v5qx-579h-rr6f","GO-2025-3383","UBUNTU-CVE-2024-45340"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Go toolchain","requires_auth":"low_privilege","summary":"A malicious server can steal credentials from the user's .netrc file due to improper domain segmentation in the Go toolchain's GOAUTH feature.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Go","cpe":[],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"Credentials provided via the new GOAUTH feature were not being properly segmented by domain, allowing a malicious server to request credentials they should not have access to. By default, unless otherwise set, this only affected credentials stored in the users .netrc file.","ecosystems":["Bitnami","Go"],"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":"GOAUTH credential leak in cmd/go","id":"CVE-2024-45340","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":2,"n_references":4,"next":{"headline":"Usage of IPv6 zone IDs can bypass URI name constraints in crypto/x509","id":"CVE-2024-45341"},"packages":[{"ecosystem":"Bitnami","fixed":["1.24.0-rc.2"],"introduced":["1.24.0-0"],"last_affected":[],"package":"golang","purl":"pkg:bitnami/golang","source":"BIT-golang-2024-45340"},{"ecosystem":"Go","fixed":["1.24.0-rc.2"],"introduced":["1.24.0-0"],"last_affected":[],"package":"toolchain","purl":"pkg:golang/toolchain","source":"GO-2025-3383"}],"prev":{"headline":"Vulnerability when creating log files in github.com/golang/glog","id":"CVE-2024-45339"},"products":["cmd/go"],"published":"2025-01-28","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-01-30","vendors":["Go toolchain"]},"summary":"A malicious server can steal credentials from the user's .netrc file due to improper domain segmentation in the Go toolchain's GOAUTH feature.","url":"https://insights.sbomify.com/CVE-2024-45340/"}