Vulnerabilities in pkg:nuget/System.DirectoryServices.Protocols

PACKAGE
Advisory Identifier: GHSA-9cxh-gqpx-qc5m
Advisory Summary

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

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/System.DirectoryServices.Protocols

1 Known Advisory Record(s)

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

CVE Identifier CVE-2021-41355
GHSA Identifier GHSA-9cxh-gqpx-qc5m
Severity MODERATE
CVSS v3.1 Base Score 5.7
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product System.DirectoryServices.Protocols
Package Ecosystem NuGet
Published Date
Last Updated

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

Attack Vector Adjacent (AV:A)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (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.

System.DirectoryServices.Protocols fixed: 5.0.1
Upgrade System.DirectoryServices.Protocols to 5.0.1
Verify Direct and Transitive Dependencies

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

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. A Information Disclosure vulnerability exists in .NET where System.DirectoryServices.Protocols.LdapConnection may send credentials in plain text on Linux. ### Patches Any .NET application that uses `System.DirectoryServices.Protocols` with a vulnerable version listed below on system based on Linux. Package name | Vulnerable versions | Secure versions ------------ | ---------------- | ------------------------- System.DirectoryServices.Protocols | 5.0.0 | 5.0.1 ### Other Details - Announcement for this issue can be found at dotnet/announcements#202 - An Issue for this can be found at https://github.com/dotnet/runtime/issues/60301 - MSRC details for this can be found at https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-41355

CVE-2021-41355 Affected System.DirectoryServices.Protocols Versions

1 component(s)
Fixed Versions:
5.0.1
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?
CVE-2021-41355 is a security vulnerability in System.DirectoryServices.Protocols involving Credential Disclosure in System.DirectoryServices.Protocols under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which System.DirectoryServices.Protocols versions are affected?
Affected versions include releases prior to 5.0.1 across affected packages: System.DirectoryServices.Protocols.
What version fixes CVE-2021-41355?
Upgrading to 5.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is System.DirectoryServices.Protocols affected?
Yes, System.DirectoryServices.Protocols is affected in releases prior to 5.0.1. Upgrade your dependency to 5.0.1 or later.
What is the CVSS score of CVE-2021-41355?
CVE-2021-41355 has a CVSS v3.1 base score of 5.7 (MODERATE) with vector string CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2021-41355?
CVE-2021-41355 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check NuGet dependencies for CVE-2021-41355?
Run the dependency tree command: 'inspect dependencies for System.DirectoryServices.Protocols'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}