# CVE-2018-0786: Improper Certificate Validation in Microsoft .NET Framework components

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 3.69% (percentile 90, 2026-11-26)
- **CWE:** CWE-295
- **Aliases:** GHSA-jc8g-xhw5-6x46
- **Published:** 2018-01-10T01:00:00.000Z
- **Modified:** 2026-06-17T01:31:39.313Z

## Who should check

- Projects that depend on NuGet package Microsoft.NETCore.UniversalWindowsPlatform (\>= 5.2.0, \< 5.2.4)
- Projects that depend on NuGet package System.ServiceModel.Primitives (\>= 4.4.0, \< 4.4.1)
- Projects that depend on NuGet package System.ServiceModel.Http (\>= 4.4.0, \< 4.4.1)
- Projects that depend on NuGet package System.ServiceModel.NetTcp (\>= 4.4.0, \< 4.4.1)
- Projects that depend on NuGet package System.ServiceModel.Duplex (\>= 4.4.0, \< 4.4.1)
- Projects that depend on NuGet package System.ServiceModel.Security (\>= 4.4.0, \< 4.4.1)
- Projects that depend on NuGet package System.Private.ServiceModel (\>= 4.4.0, \< 4.4.1)
- Anyone running Microsoft Corporation .NET Framework, .NET Core, and PowerShell Core Microsoft .NET Framework 2.0 SP2, 3.0 SP2, 3.5, 3.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, .NET Core 1.0 and 2.0, PowerShell Core 6.0.0

## Description

Microsoft .NET Framework 2.0 SP2, 3.0 SP2, 3.5, 3.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, .NET Core 1.0 and 2.0, and PowerShell Core 6.0.0 allow a security feature bypass vulnerability due to the way certificates are validated, aka ".NET Security Feature Bypass Vulnerability."

## Affected and fixed versions

- NuGet `Microsoft.NETCore.UniversalWindowsPlatform`: affected \>= 5.2.0, \< 5.2.4; fixed 5.2.4, 5.3.5, 5.4.2, 6.0.6 (osv)
- NuGet `System.ServiceModel.Primitives`: affected \>= 4.4.0, \< 4.4.1; fixed 4.4.1, 4.3.1, 4.1.1 (osv)
- NuGet `System.ServiceModel.Http`: affected \>= 4.4.0, \< 4.4.1; fixed 4.4.1, 4.3.1, 4.1.1 (osv)
- NuGet `System.ServiceModel.NetTcp`: affected \>= 4.4.0, \< 4.4.1; fixed 4.4.1, 4.3.1, 4.1.1 (osv)
- NuGet `System.ServiceModel.Duplex`: affected \>= 4.4.0, \< 4.4.1; fixed 4.4.1, 4.3.1, 4.0.2 (osv)
- NuGet `System.ServiceModel.Security`: affected \>= 4.4.0, \< 4.4.1; fixed 4.4.1, 4.3.1, 4.0.2 (osv)
- NuGet `System.Private.ServiceModel`: affected \>= 4.4.0, \< 4.4.1; fixed 4.4.1, 4.3.1, 4.1.1 (osv)
- Microsoft Corporation .NET Framework, .NET Core, and PowerShell Core: Microsoft .NET Framework 2.0 SP2, 3.0 SP2, 3.5, 3.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, .NET Core 1.0 and 2.0, PowerShell Core 6.0.0 (cvelist)

## Mitigation

- Upgrade Microsoft.NETCore.UniversalWindowsPlatform to one of 5.2.4, 5.3.5, 5.4.2, 6.0.6 (or later in the same release line).
- Upgrade System.ServiceModel.Primitives to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line).
- Upgrade System.ServiceModel.Http to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line).
- Upgrade System.ServiceModel.NetTcp to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line).
- Upgrade System.ServiceModel.Duplex to one of 4.4.1, 4.3.1, 4.0.2 (or later in the same release line).
- Upgrade System.ServiceModel.Security to one of 4.4.1, 4.3.1, 4.0.2 (or later in the same release line).
- Upgrade System.Private.ServiceModel to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2018-0786. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2018-0786.md
Affected: Microsoft.NETCore.UniversalWindowsPlatform >= 5.2.0, < 5.2.4; System.ServiceModel.Primitives >= 4.4.0, < 4.4.1; System.ServiceModel.Http >= 4.4.0, < 4.4.1; System.ServiceModel.NetTcp >= 4.4.0, < 4.4.1; System.ServiceModel.Duplex >= 4.4.0, < 4.4.1; System.ServiceModel.Security >= 4.4.0, < 4.4.1; Sys…
Fixed in: 5.2.4, 5.3.5, 5.4.2, 6.0.6, 4.4.1, 4.3.1, 4.1.1, 4.0.2

Steps:
1. Search this machine and project for Microsoft.NETCore.UniversalWindowsPlatform (NuGet), System.ServiceModel.Primitives (NuGet), System.ServiceModel.Http (NuGet), System.ServiceModel.NetTcp (NuGet), System.ServiceModel.Duplex (NuGet), System.ServiceModel.Security (NuGet): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2018-0786 being exploited?

There is no confirmed exploitation: CVE-2018-0786 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.69% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2018-0786?

High: CVSS 7.5 (v3.0, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2018-0786?

Microsoft.NETCore.UniversalWindowsPlatform \>= 5.2.0, \< 5.2.4; System.ServiceModel.Primitives \>= 4.4.0, \< 4.4.1; System.ServiceModel.Http \>= 4.4.0, \< 4.4.1; System.ServiceModel.NetTcp \>= 4.4.0, \< 4.4.1; System.ServiceModel.Duplex \>= 4.4.0, \< 4.4.1; System.ServiceModel.Security \>= 4.4.0, \< 4.4.1; System.Private.ServiceModel \>= 4.4.0, \< 4.4.1.

### Is there a fix for CVE-2018-0786?

Yes. Fixed in 5.2.4, 5.3.5, 5.4.2, 6.0.6, 4.4.1, 4.3.1, 4.1.1, 4.0.2. Upgrade Microsoft.NETCore.UniversalWindowsPlatform to one of 5.2.4, 5.3.5, 5.4.2, 6.0.6 (or later in the same release line). Upgrade System.ServiceModel.Primitives to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line). Upgrade System.ServiceModel.Http to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line). Upgrade System.ServiceModel.NetTcp to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line). Upgrade System.ServiceModel.Duplex to one of 4.4.1, 4.3.1, 4.0.2 (or later in the same release line). Upgrade System.ServiceModel.Security to one of 4.4.1, 4.3.1, 4.0.2 (or later in the same release line). Upgrade System.Private.ServiceModel to one of 4.4.1, 4.3.1, 4.1.1 (or later in the same release line).

### How do I check if I'm affected by CVE-2018-0786?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2018-0786>
- vendor: <https://github.com/advisories/GHSA-jc8g-xhw5-6x46>
- patch: <https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-0786>
- other: <http://www.securityfocus.com/bid/102380>
- other: <http://www.securitytracker.com/id/1040152>
- other: <https://github.com/dotnet/announcements/issues/51>
- other: <https://github.com/github/advisory-database/issues/302>
- other: <https://www.nuget.org/packages/System.ServiceModel.Duplex#versions-body-tab>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2018-0786>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-jc8g-xhw5-6x46> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2018-0786> · JSON: <https://flawdb.com/api/v1/entries/CVE-2018-0786>
