Vulnerabilities in pkg:nuget/System.ServiceModel.Duplex

PACKAGE
Advisory Identifier: GHSA-p9wx-v264-q34p
Advisory Summary

CVE-2018-8356 is a MODERATE (CVSS 5.5) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting System.Private.ServiceModel libraries in the NuGet ecosystem. The issue involves improper certificate validation in microsoft .net framework components. Remediation is available by upgrading affected packages to version 4.1.3, 4.3.3, 4.4.4, 4.5.3, 4.0.4.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:nuget/System.ServiceModel.Duplex

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:nuget/System.ServiceModel.Duplex. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-p9wx-v264-q34p CVE-2018-8356 MODERATE Improper Certificate Validation in Microsoft .NET Framework components
GHSA-jc8g-xhw5-6x46 CVE-2018-0786 HIGH Improper Certificate Validation in Microsoft .NET Framework components

CVE-2018-8356 at a Glance

CVE Identifier CVE-2018-8356
GHSA Identifier GHSA-p9wx-v264-q34p
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product System.Private.ServiceModel
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2018-8356

To remediate this vulnerability, upgrade all affected System.Private.ServiceModel 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.Private.ServiceModel fixed: 4.1.3
Upgrade System.Private.ServiceModel to 4.1.3
System.Private.ServiceModel fixed: 4.3.3
Upgrade System.Private.ServiceModel to 4.3.3
System.Private.ServiceModel fixed: 4.4.4
Upgrade System.Private.ServiceModel to 4.4.4
System.Private.ServiceModel fixed: 4.5.3
Upgrade System.Private.ServiceModel to 4.5.3
System.ServiceModel.Duplex fixed: 4.3.3
Upgrade System.ServiceModel.Duplex to 4.3.3
System.ServiceModel.Duplex fixed: 4.4.4
Upgrade System.ServiceModel.Duplex to 4.4.4
System.ServiceModel.Duplex fixed: 4.5.3
Upgrade System.ServiceModel.Duplex to 4.5.3
System.ServiceModel.Duplex fixed: 4.0.4
Upgrade System.ServiceModel.Duplex to 4.0.4
System.ServiceModel.Http fixed: 4.3.3
Upgrade System.ServiceModel.Http to 4.3.3
System.ServiceModel.Http fixed: 4.4.4
Upgrade System.ServiceModel.Http to 4.4.4
System.ServiceModel.Http fixed: 4.5.3
Upgrade System.ServiceModel.Http to 4.5.3
System.ServiceModel.Http fixed: 4.1.3
Upgrade System.ServiceModel.Http to 4.1.3
System.ServiceModel.NetTcp fixed: 4.3.3
Upgrade System.ServiceModel.NetTcp to 4.3.3
System.ServiceModel.NetTcp fixed: 4.4.4
Upgrade System.ServiceModel.NetTcp to 4.4.4
System.ServiceModel.NetTcp fixed: 4.5.3
Upgrade System.ServiceModel.NetTcp to 4.5.3
System.ServiceModel.NetTcp fixed: 4.1.3
Upgrade System.ServiceModel.NetTcp to 4.1.3
System.ServiceModel.Primitives fixed: 4.3.3
Upgrade System.ServiceModel.Primitives to 4.3.3
System.ServiceModel.Primitives fixed: 4.4.4
Upgrade System.ServiceModel.Primitives to 4.4.4
System.ServiceModel.Primitives fixed: 4.5.3
Upgrade System.ServiceModel.Primitives to 4.5.3
System.ServiceModel.Primitives fixed: 4.1.3
Upgrade System.ServiceModel.Primitives to 4.1.3
System.ServiceModel.Security fixed: 4.3.3
Upgrade System.ServiceModel.Security to 4.3.3
System.ServiceModel.Security fixed: 4.4.4
Upgrade System.ServiceModel.Security to 4.4.4
System.ServiceModel.Security fixed: 4.5.3
Upgrade System.ServiceModel.Security to 4.5.3
System.ServiceModel.Security fixed: 4.0.4
Upgrade System.ServiceModel.Security to 4.0.4
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.Private.ServiceModel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2018-8356, inspect your project dependencies for System.Private.ServiceModel:

inspect dependencies for System.Private.ServiceModel

Analyze the terminal output to locate any version of System.Private.ServiceModel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.1.3), 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In System.Private.ServiceModel, 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

A security feature bypass vulnerability exists when Microsoft .NET Framework components do not correctly validate certificates, aka ".NET Framework Security Feature Bypass Vulnerability." This affects .NET Framework 4.7.2, Microsoft .NET Framework 3.0, Microsoft .NET Framework 4.6.2/4.7/4.7.1/4.7.2, ASP.NET Core 1.1, Microsoft .NET Framework 4.5.2, ASP.NET Core 2.0, ASP.NET Core 1.0, .NET Core 1.1, Microsoft .NET Framework 3.5, Microsoft .NET Framework 3.5.1, Microsoft .NET Framework 4.6/4.6.1/4.6.2, .NET Core 1.0, .NET Core 2.0, Microsoft .NET Framework 4.6, Microsoft .NET Framework 4.6/4.6.1/4.6.2/4.7/4.7.1/4.7.1/4.7.2, Microsoft .NET Framework 4.7.2.

CVE-2018-8356 Affected System.Private.ServiceModel Versions

24 component(s)
Fixed Versions:
4.1.34.3.34.4.44.5.34.0.4
Product / Package Ecosystem Affected Versions Fixed Version
System.Private.ServiceModel
NuGet
≥ 4.0.0
< 4.1.3
4.1.3
System.Private.ServiceModel
NuGet
≥ 4.3.0
< 4.3.3
4.3.3
System.Private.ServiceModel
NuGet
≥ 4.4.0
< 4.4.4
4.4.4
System.Private.ServiceModel
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
System.ServiceModel.Duplex
NuGet
≥ 4.3.0
< 4.3.3
4.3.3
System.ServiceModel.Duplex
NuGet
≥ 4.4.0
< 4.4.4
4.4.4
System.ServiceModel.Duplex
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
System.ServiceModel.Duplex
NuGet
≥ 4.0.0
< 4.0.4
4.0.4
System.ServiceModel.Http
NuGet
≥ 4.3.0
< 4.3.3
4.3.3
System.ServiceModel.Http
NuGet
≥ 4.4.0
< 4.4.4
4.4.4
System.ServiceModel.Http
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
System.ServiceModel.Http
NuGet
≥ 4.0.0
< 4.1.3
4.1.3
System.ServiceModel.NetTcp
NuGet
≥ 4.3.0
< 4.3.3
4.3.3
System.ServiceModel.NetTcp
NuGet
≥ 4.4.0
< 4.4.4
4.4.4
System.ServiceModel.NetTcp
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
System.ServiceModel.NetTcp
NuGet
≥ 4.0.0
< 4.1.3
4.1.3
System.ServiceModel.Primitives
NuGet
≥ 4.3.0
< 4.3.3
4.3.3
System.ServiceModel.Primitives
NuGet
≥ 4.4.0
< 4.4.4
4.4.4
System.ServiceModel.Primitives
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
System.ServiceModel.Primitives
NuGet
≥ 4.0.0
< 4.1.3
4.1.3
System.ServiceModel.Security
NuGet
≥ 4.3.0
< 4.3.3
4.3.3
System.ServiceModel.Security
NuGet
≥ 4.4.0
< 4.4.4
4.4.4
System.ServiceModel.Security
NuGet
≥ 4.5.0
< 4.5.3
4.5.3
System.ServiceModel.Security
NuGet
≥ 4.0.0
< 4.0.4
4.0.4

References

Frequently Asked Questions

What is CVE-2018-8356?
CVE-2018-8356 is a security vulnerability in System.Private.ServiceModel involving Improper Certificate Validation in Microsoft .NET Framework components under CWE-295: Improper Certificate Validation.
Which System.Private.ServiceModel versions are affected?
Affected versions include releases prior to 4.1.3, 4.3.3, 4.4.4, 4.5.3, 4.0.4 across affected packages: System.Private.ServiceModel, System.ServiceModel.Duplex, System.ServiceModel.Http, System.ServiceModel.NetTcp, System.ServiceModel.Primitives, System.ServiceModel.Security.
What version fixes CVE-2018-8356?
Upgrading to 4.1.3, 4.3.3, 4.4.4, 4.5.3, 4.0.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is System.Private.ServiceModel affected?
Yes, System.Private.ServiceModel is affected in releases prior to 4.1.3, 4.3.3, 4.4.4, 4.5.3. Upgrade your dependency to 4.1.3, 4.3.3, 4.4.4, 4.5.3 or later.
Is System.ServiceModel.Duplex affected?
Yes, System.ServiceModel.Duplex is affected in releases prior to 4.3.3, 4.4.4, 4.5.3, 4.0.4. Upgrade your dependency to 4.3.3, 4.4.4, 4.5.3, 4.0.4 or later.
What is the CVSS score of CVE-2018-8356?
CVE-2018-8356 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2018-8356?
CVE-2018-8356 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check NuGet dependencies for CVE-2018-8356?
Run the dependency tree command: 'inspect dependencies for System.Private.ServiceModel'. 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-p9wx-v264-q34p",
  "modified" : "2022-07-08T19:23:06Z",
  "published" : "2022-05-14T03:00:10Z",
  "aliases" : [ "CVE-2018-8356" ],
  "summary" : "Improper Certificate Validation in Microsoft .NET Framework components",
  "details" : "A security feature bypass vulnerability exists when Microsoft .NET Framework components do not correctly validate certificates, aka \".NET Framework Security Feature Bypass Vulnerability.\" This affects .NET Framework 4.7.2, Microsoft .NET Framework 3.0, Microsoft .NET Framework 4.6.2/4.7/4.7.1/4.7.2, ASP.NET Core 1.1, Microsoft .NET Framework 4.5.2, ASP.NET Core 2.0, ASP.NET Core 1.0, .NET Core 1.1, Microsoft .NET Framework 3.5, Microsoft .NET Framework 3.5.1, Microsoft .NET Framework 4.6/4.6.1/4.6.2, .NET Core 1.0, .NET Core 2.0, Microsoft .NET Framework 4.6, Microsoft .NET Framework 4.6/4.6.1/4.6.2/4.7/4.7.1/4.7.1/4.7.2, Microsoft .NET Framework 4.7.2.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.Private.ServiceModel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.Private.ServiceModel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.Private.ServiceModel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.Private.ServiceModel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Duplex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Duplex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Duplex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Duplex"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.2"
    }
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.NetTcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.NetTcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.NetTcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.NetTcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Primitives"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Primitives"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Primitives"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Primitives"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.1.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.3.0"
      }, {
        "fixed" : "4.3.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.4.0"
      }, {
        "fixed" : "4.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "System.ServiceModel.Security"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0"
      }, {
        "fixed" : "4.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 4.0.2"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-8356"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/dotnet/announcements/issues/73"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/github/advisory-database/issues/302"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8356"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-08T19:23:06Z",
    "nvd_published_at" : "2018-07-11T00:29:00Z"
  }
}