Vulnerabilities in pkg:nuget/System.DirectoryServices.Protocols
PACKAGECVE-2021-41355 is a MODERATE (CVSS 5.7) credential disclosure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting System.DirectoryServices.Protocols libraries in the NuGet ecosystem. The issue involves credential disclosure in system.directoryservices.protocols. Remediation is available by upgrading affected packages to version 5.0.1.
pkg:nuget/System.DirectoryServices.Protocols
Vulnerability advisories affecting package pkg:nuget/System.DirectoryServices.Protocols. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9cxh-gqpx-qc5m | CVE-2021-41355 | MODERATE | Credential Disclosure in System.DirectoryServices.Protocols |
CVE-2021-41355 at a Glance
Security Impact
CVSS: 5.7
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N).
How to Fix CVE-2021-41355
To remediate this vulnerability, upgrade all affected System.DirectoryServices.Protocols 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 System.DirectoryServices.Protocols to 5.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for System.DirectoryServices.Protocols
How to Check if You Are Affected
To determine whether your application is affected by CVE-2021-41355, inspect your project dependencies for System.DirectoryServices.Protocols:
inspect dependencies for System.DirectoryServices.Protocols
Analyze the terminal output to locate any version of System.DirectoryServices.Protocols in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.1), 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-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In System.DirectoryServices.Protocols, 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-2021-41355 Affected System.DirectoryServices.Protocols Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
System.DirectoryServices.Protocols
|
NuGet |
< 5.0.1
|
5.0.1
|
References
Frequently Asked Questions
What is CVE-2021-41355?
Which System.DirectoryServices.Protocols versions are affected?
What version fixes CVE-2021-41355?
Is System.DirectoryServices.Protocols affected?
What is the CVSS score of CVE-2021-41355?
What CWE is associated with CVE-2021-41355?
How can I check NuGet dependencies for CVE-2021-41355?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9cxh-gqpx-qc5m",
"modified" : "2022-02-08T20:42:44Z",
"published" : "2021-10-12T17:49:25Z",
"aliases" : [ "CVE-2021-41355" ],
"summary" : "Credential Disclosure in System.DirectoryServices.Protocols",
"details" : "Microsoft is releasing this security advisory to provide information about a vulnerability in .NET. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.\n\nA Information Disclosure vulnerability exists in .NET where System.DirectoryServices.Protocols.LdapConnection may send credentials in plain text on Linux.\n\n### Patches\nAny .NET application that uses `System.DirectoryServices.Protocols` with a vulnerable version listed below on system based on Linux.\n\nPackage name | Vulnerable versions | Secure versions\n------------ | ---------------- | -------------------------\nSystem.DirectoryServices.Protocols | 5.0.0 | 5.0.1\n\n### Other Details\n\n- Announcement for this issue can be found at dotnet/announcements#202\n- An Issue for this can be found at https://github.com/dotnet/runtime/issues/60301\n- MSRC details for this can be found at https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-41355",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "System.DirectoryServices.Protocols"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.0.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/dotnet/runtime/security/advisories/GHSA-9cxh-gqpx-qc5m"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-41355"
}, {
"type" : "WEB",
"url" : "https://github.com/dotnet/runtime/issues/60301"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/dotnet/runtime"
}, {
"type" : "WEB",
"url" : "https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-41355"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2021-41355"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/security-alerts/cpujan2022.html"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2021-10-12T17:48:55Z",
"nvd_published_at" : "2021-10-13T01:15:00Z"
}
}