Vulnerabilities in pkg:nuget/Steeltoe.Discovery.ClientAutofac
PACKAGECVE-2024-40636 is a LOW (CVSS 2.5) steeltoe leaks basic auth credentials vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting Steeltoe.Discovery.Eureka libraries in the NuGet ecosystem. The issue involves steeltoe leaks basic auth credentials to logs after fetch registry error. Remediation is available by upgrading affected packages to version 3.2.8.
pkg:nuget/Steeltoe.Discovery.ClientAutofac
Vulnerability advisories affecting package pkg:nuget/Steeltoe.Discovery.ClientAutofac. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vmcp-66r5-3pcp | CVE-2024-40636 | LOW | Steeltoe Leaks Basic Auth Credentials to Logs After Fetch Registry Error |
CVE-2024-40636 at a Glance
Security Impact
CVSS: 2.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-40636
To remediate this vulnerability, upgrade all affected Steeltoe.Discovery.Eureka dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Steeltoe.Discovery.Eureka to 3.2.8
Upgrade Steeltoe.Discovery.EurekaBase to Latest secure release
Upgrade Steeltoe.Discovery.ClientCore to Latest secure release
Upgrade Steeltoe.Discovery.ClientAutofac to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Steeltoe.Discovery.Eureka
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-40636, inspect your project dependencies for Steeltoe.Discovery.Eureka:
inspect dependencies for Steeltoe.Discovery.Eureka
Analyze the terminal output to locate any version of Steeltoe.Discovery.Eureka in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.2.8), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In Steeltoe.Discovery.Eureka, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-40636 Affected Steeltoe.Discovery.Eureka Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Steeltoe.Discovery.Eureka
|
NuGet |
< 3.2.8
|
3.2.8
|
|
Steeltoe.Discovery.EurekaBase
|
NuGet |
≤ 2.5.5
|
|
|
Steeltoe.Discovery.ClientCore
|
NuGet |
|
|
|
Steeltoe.Discovery.ClientAutofac
|
NuGet |
≤ 2.5.5
|
|
References
Frequently Asked Questions
What is CVE-2024-40636?
Which Steeltoe.Discovery.Eureka versions are affected?
What version fixes CVE-2024-40636?
Is Steeltoe.Discovery.Eureka affected?
Is Steeltoe.Discovery.EurekaBase affected?
What is the CVSS score of CVE-2024-40636?
What CWE is associated with CVE-2024-40636?
How can I check NuGet dependencies for CVE-2024-40636?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vmcp-66r5-3pcp",
"modified" : "2024-07-17T19:13:43Z",
"published" : "2024-07-17T16:00:10Z",
"aliases" : [ "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",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Steeltoe.Discovery.Eureka"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "3.2.8"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 3.2.7"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Steeltoe.Discovery.EurekaBase"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.5.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Steeltoe.Discovery.ClientCore"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 3.0.0"
}
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Steeltoe.Discovery.ClientAutofac"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.5.5"
} ]
} ]
} ],
"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"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-07-17T16:00:10Z",
"nvd_published_at" : "2024-07-17T18:15:04Z"
}
}