{"id":"CVE-2024-40636","aliases":["CVE-2024-40636","GHSA-vmcp-66r5-3pcp"],"related":[],"kind":"vulnerability","state":"published","title":"Basic Auth Credential Leakage to Logs After Fetch Registry Error in Steeltoe.Discovery.Eureka with Peer Awareness","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"},{"lang":"es","text":"Steeltoe es un proyecto de código abierto que proporciona una colección de librerías que ayudan a los usuarios a crear aplicaciones nativas de la nube de nivel de producción mediante configuración externalizada, descubrimiento de servicios, seguimiento distribuido, gestión de aplicaciones y más. Cuando se utilizan varias URL del servicio del servidor Eureka con autenticación básica y se produce un problema al obtener el registro del servicio, se registra un error con las URL del servicio del servidor Eureka, pero solo se enmascara la primera URL. El código en cuestión es `_logger.LogError(e, \"FetchRegistry Failed for Eureka service urls: {EurekaServerServiceUrls}\", new Uri(ClientConfig.EurekaServerServiceUrls).ToMaskedString());` en el archivo `DiscoveryClient.cs` que puede filtrarse credenciales en registros. Este problema se solucionó en la versión 3.2.8 del paquete nuget Steeltoe.Discovery.Eureka.","source":"nvd"}],"published":"2024-07-17T16:00:10.000Z","modified":"2026-09-10T03:50:17.534Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","score":2.5,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"LOW"}],"cwes":["CWE-532"],"affected":[{"ranges":[{"version":"< 3.2.8","status":"affected"}],"vendor":"SteeltoeOSS","product":"security-advisories","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"3.2.8","status":"affected"}],"vendor":"steeltoeoss","product":"discovery","cpe":"cpe:2.3:a:steeltoeoss:discovery:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"3.2.8"}],"ecosystem":"NuGet","package":"Steeltoe.Discovery.Eureka","purl":"pkg:nuget/Steeltoe.Discovery.Eureka","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.5.5"}],"ecosystem":"NuGet","package":"Steeltoe.Discovery.EurekaBase","purl":"pkg:nuget/Steeltoe.Discovery.EurekaBase","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"NuGet","package":"Steeltoe.Discovery.ClientCore","purl":"pkg:nuget/Steeltoe.Discovery.ClientCore","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.5.5"}],"ecosystem":"NuGet","package":"Steeltoe.Discovery.ClientAutofac","purl":"pkg:nuget/Steeltoe.Discovery.ClientAutofac","source":"ghsa"}],"references":[{"url":"https://github.com/SteeltoeOSS/security-advisories/security/advisories/GHSA-vmcp-66r5-3pcp","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40636","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/SteeltoeOSS/Steeltoe/commit/c5d4a94e90ccb77f8e851bc681a2e348a95e7ecb","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/SteeltoeOSS/security-advisories","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-07-17T18:34:42.919Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-40636","url":"https://www.cve.org/CVERecord?id=CVE-2024-40636","licence":"CVE Terms of Use","modified":"2024-08-02T04:33:11.743Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vmcp-66r5-3pcp","url":"https://github.com/advisories/GHSA-vmcp-66r5-3pcp","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:17.534Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-40636","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-40636","licence":"Public domain","modified":"2026-06-17T07:46:12.950Z"}],"updatedAt":"2026-11-25T22:58:43.028Z","epss":{"score":0.00418,"percentile":0.3806,"date":"2026-12-01T12:00:22.000Z"}}