{"answers":{"affected":"8 open source packages ship an affected version, including Steeltoe.Discovery.ClientAutofac, Steeltoe.Discovery.ClientCore and Steeltoe.Discovery.Eureka.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40636 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2024-40636 is a medium-severity vulnerability in SteeltoeOSS security-advisories, published on 17 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-40636 and fix it if it is affected.\n\nWhat it is: CVE-2024-40636 is a medium-severity vulnerability in SteeltoeOSS security-advisories, published on 17 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40636 exists.\n\nAffected packages and fixed versions:\n- Steeltoe.Discovery.ClientAutofac (NuGet): affected all versions up to 2.5.5; no fix listed\n- Steeltoe.Discovery.ClientAutofac (NuGet): affected all versions up to 2.5.5; no fix listed\n- Steeltoe.Discovery.ClientCore (NuGet): affected all versions; no fix listed\n- Steeltoe.Discovery.ClientCore (NuGet): affected all versions; no fix listed\n- Steeltoe.Discovery.Eureka (NuGet): affected all versions; fixed in 3.2.8\n- Steeltoe.Discovery.Eureka (NuGet): affected all versions; fixed in 3.2.8\n- Steeltoe.Discovery.EurekaBase (NuGet): affected all versions up to 2.5.5; no fix listed\n- Steeltoe.Discovery.EurekaBase (NuGet): affected all versions up to 2.5.5; no fix listed\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-40636/ (Markdown: https://insights.sbomify.com/CVE-2024-40636/index.md)","id":"CVE-2024-40636","markdown":"https://insights.sbomify.com/CVE-2024-40636/index.md","name":"CVE-2024-40636","record":{"aliases":["GHSA-vmcp-66r5-3pcp"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Steeltoe Eureka client","requires_auth":"none","summary":"Attackers with log access can view unmasked Basic Auth credentials when multiple Eureka server URLs are configured and a fetch error occurs.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"description":"Steeltoe is an open source project that provides a collection of libraries that helps users build production-grade cloud-native applications using externalized configuration, service discovery, distributed tracing, application management, and more. When utilizing multiple Eureka server service URLs with basic auth and encountering an issue with fetching the service registry, an error is logged with the Eureka server service URLs but only the first URL is masked. The code in question is  `_logger.LogError(e, \"FetchRegistry Failed for Eureka service urls: {EurekaServerServiceUrls}\", new Uri(ClientConfig.EurekaServerServiceUrls).ToMaskedString());` in the `DiscoveryClient.cs` file which may leak credentials into logs. This issue has been addressed in version 3.2.8 of the Steeltoe.Discovery.Eureka nuget package.","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Basic Auth Credential Leakage to Logs After Fetch Registry Error in Steeltoe.Discovery.Eureka with Peer Awareness","id":"CVE-2024-40636","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":8,"n_references":1,"next":{"headline":"Implicit override for built-in materializations from installed packages in dbt-core","id":"CVE-2024-40637"},"packages":[{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":["2.5.5"],"package":"Steeltoe.Discovery.ClientAutofac","purl":null,"source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":["2.5.5"],"package":"Steeltoe.Discovery.ClientAutofac","purl":"pkg:nuget/Steeltoe.Discovery.ClientAutofac","source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":[],"package":"Steeltoe.Discovery.ClientCore","purl":null,"source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":[],"package":"Steeltoe.Discovery.ClientCore","purl":"pkg:nuget/Steeltoe.Discovery.ClientCore","source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":["3.2.8"],"introduced":["0"],"last_affected":[],"package":"Steeltoe.Discovery.Eureka","purl":null,"source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":["3.2.8"],"introduced":["0"],"last_affected":[],"package":"Steeltoe.Discovery.Eureka","purl":"pkg:nuget/Steeltoe.Discovery.Eureka","source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":["2.5.5"],"package":"Steeltoe.Discovery.EurekaBase","purl":null,"source":"GHSA-vmcp-66r5-3pcp"},{"ecosystem":"NuGet","fixed":[],"introduced":["0"],"last_affected":["2.5.5"],"package":"Steeltoe.Discovery.EurekaBase","purl":"pkg:nuget/Steeltoe.Discovery.EurekaBase","source":"GHSA-vmcp-66r5-3pcp"}],"prev":{"headline":"containerd has an integer overflow in User ID handling","id":"CVE-2024-40635"},"products":["security-advisories"],"published":"2024-07-17","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["SteeltoeOSS"]},"summary":"Attackers with log access can view unmasked Basic Auth credentials when multiple Eureka server URLs are configured and a fetch error occurs.","url":"https://insights.sbomify.com/CVE-2024-40636/"}