Vulnerabilities in pkg:nuget/System.ServiceModel.Primitives
PACKAGECVE-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.
pkg:nuget/System.ServiceModel.Primitives
Vulnerability advisories affecting package pkg:nuget/System.ServiceModel.Primitives. 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
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).
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.
Upgrade System.Private.ServiceModel to 4.1.3
Upgrade System.Private.ServiceModel to 4.3.3
Upgrade System.Private.ServiceModel to 4.4.4
Upgrade System.Private.ServiceModel to 4.5.3
Upgrade System.ServiceModel.Duplex to 4.3.3
Upgrade System.ServiceModel.Duplex to 4.4.4
Upgrade System.ServiceModel.Duplex to 4.5.3
Upgrade System.ServiceModel.Duplex to 4.0.4
Upgrade System.ServiceModel.Http to 4.3.3
Upgrade System.ServiceModel.Http to 4.4.4
Upgrade System.ServiceModel.Http to 4.5.3
Upgrade System.ServiceModel.Http to 4.1.3
Upgrade System.ServiceModel.NetTcp to 4.3.3
Upgrade System.ServiceModel.NetTcp to 4.4.4
Upgrade System.ServiceModel.NetTcp to 4.5.3
Upgrade System.ServiceModel.NetTcp to 4.1.3
Upgrade System.ServiceModel.Primitives to 4.3.3
Upgrade System.ServiceModel.Primitives to 4.4.4
Upgrade System.ServiceModel.Primitives to 4.5.3
Upgrade System.ServiceModel.Primitives to 4.1.3
Upgrade System.ServiceModel.Security to 4.3.3
Upgrade System.ServiceModel.Security to 4.4.4
Upgrade System.ServiceModel.Security to 4.5.3
Upgrade System.ServiceModel.Security to 4.0.4
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
CVE-2018-8356 Affected System.Private.ServiceModel Versions
24 component(s)| 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?
Which System.Private.ServiceModel versions are affected?
What version fixes CVE-2018-8356?
Is System.Private.ServiceModel affected?
Is System.ServiceModel.Duplex affected?
What is the CVSS score of CVE-2018-8356?
What CWE is associated with CVE-2018-8356?
How can I check NuGet dependencies for CVE-2018-8356?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}