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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.42%, higher than 38% of CVEs (2026-12-01)
- Published: 2024-07-17T16:00:10.000Z
- Modified: 2026-09-10T03:50:17.534Z
- Also known as: GHSA-vmcp-66r5-3pcp
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- SteeltoeOSS security-advisories: < 3.2.8
- steeltoeoss discovery: before 3.2.8
- Steeltoe.Discovery.Eureka (NuGet): before 3.2.8
- Steeltoe.Discovery.EurekaBase (NuGet): up to 2.5.5
- Steeltoe.Discovery.ClientCore (NuGet): all versions
- Steeltoe.Discovery.ClientAutofac (NuGet): up to 2.5.5

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `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`

## References

- <https://github.com/SteeltoeOSS/security-advisories/security/advisories/GHSA-vmcp-66r5-3pcp> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-40636> (advisory)
- <https://github.com/SteeltoeOSS/Steeltoe/commit/c5d4a94e90ccb77f8e851bc681a2e348a95e7ecb> (web)
- <https://github.com/SteeltoeOSS/security-advisories> (package)

## Sources

- CVE List: [CVE-2024-40636](https://www.cve.org/CVERecord?id=CVE-2024-40636), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-vmcp-66r5-3pcp](https://github.com/advisories/GHSA-vmcp-66r5-3pcp), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-40636](https://nvd.nist.gov/vuln/detail/CVE-2024-40636), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40636 · Whole record: https://cve.day/CVE-2024-40636.json · Rebuilt by cve.day 2026-11-25T22:58:43.028Z
