{"id":"CVE-2024-40636","aliases":[],"url":"https://o3.security/vulnerability/CVE-2024-40636","summary":"Steeltoe Leaks Basic Auth Credentials to Logs After Fetch Registry Error","details":"### Summary\nWhen 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.\n\n### Details\nPackage: Steeltoe.Discovery.Eureka\nPackage version: 3.2.1\nBranch: \"release/3.2\"\nFile name: `DiscoveryClient.cs`\nLine number: 325\nCode in question:  `_logger.LogError(e, \"FetchRegistry Failed for Eureka service urls: {EurekaServerServiceUrls}\", new Uri(ClientConfig.EurekaServerServiceUrls).ToMaskedString());`\n\n\nError message in logs: `FetchRegistry Failed for Eureka service urls: https://****:****@eureka1.com:443/eureka,https://user:password@eureka2.com:443/eureka`\n\nI thought `new Uri(clientOptions.EurekaServerServiceUrls)` would throw a `UriFormatException` since there are multiple URLs but my logs are showing two URLs regardless.\n\n### PoC\n1. Set Eureka config with multiple server URLs with basic auth\n2. Apologies for not being more descriptive for this step, but I believe we would just need to trigger an exception in `FetchFullRegistryAsync`.\n3. Check the logs and should see the error \n\n### Impact\nVulnerability: Credential leakage in the logs\nWho does it impact?: Users who are using peer awareness with Spring Eureka","published":"2024-07-17T16:00:10Z","modified":"2026-09-10T03:50:17.534390938Z","cvss":{"score":2.5,"severity":"LOW","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"NuGet","name":"Steeltoe.Discovery.Eureka","fixedVersion":"3.2.8"},{"ecosystem":"NuGet","name":"Steeltoe.Discovery.EurekaBase","fixedVersion":null},{"ecosystem":"NuGet","name":"Steeltoe.Discovery.ClientCore","fixedVersion":null},{"ecosystem":"NuGet","name":"Steeltoe.Discovery.ClientAutofac","fixedVersion":null}],"fix":{"url":"https://github.com/SteeltoeOSS/Steeltoe/commit/c5d4a94e90ccb77f8e851bc681a2e348a95e7ecb","label":"SteeltoeOSS/Steeltoe@c5d4a94"},"references":[{"type":"WEB","url":"https://github.com/SteeltoeOSS/security-advisories/security/advisories/GHSA-vmcp-66r5-3pcp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40636"},{"type":"WEB","url":"https://github.com/SteeltoeOSS/Steeltoe/commit/c5d4a94e90ccb77f8e851bc681a2e348a95e7ecb"},{"type":"PACKAGE","url":"https://github.com/SteeltoeOSS/security-advisories"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-09-10T03:50:17.534390938Z"}}