CVE-2017-0248 — Microsoft.AspNetCore.Mvc
CVE-2017-0248 is a CWE-295 vulnerability in Microsoft.AspNetCore.Mvc. A fix is available for Microsoft.AspNetCore.Mvc — see the affected versions and patch details below.
Moderate severity vulnerability that affects Microsoft.AspNetCore.Mvc and Microsoft.AspNetCore.Mvc.Core
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
Microsoft.AspNetCore.Mvc.NETMicrosoft.AspNetCore.Mvc.NETMicrosoft.AspNetCore.Mvc.Core.NETMicrosoft.AspNetCore.Mvc.Core.NETSystem.Net.Http.NETSystem.Net.Http.NETSystem.Text.Encodings.Web.NETSystem.Text.Encodings.Web+30 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects NuGet packages — download data is not available via public APIs for these ecosystems.
Description
Microsoft .NET Framework 2.0, 3.5, 3.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2 and 4.7 allow an attacker to bypass Enhanced Security Usage taggings when they present a certificate that is invalid for a specific use, aka ".NET Security Feature Bypass Vulnerability."
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| .NETNuGet | Microsoft.AspNetCore.Mvc | ≥ 1.0.0&&< 1.0.4 | 1.0.4dotnet add package Microsoft.AspNetCore.Mvc --version 1.0.4 |
| .NETNuGet | Microsoft.AspNetCore.Mvc | ≥ 1.1.0&&< 1.1.3 | 1.1.3dotnet add package Microsoft.AspNetCore.Mvc --version 1.1.3 |
| .NETNuGet | Microsoft.AspNetCore.Mvc.Core | ≥ 1.0.0&&< 1.0.4 | 1.0.4dotnet add package Microsoft.AspNetCore.Mvc.Core --version 1.0.4 |
| .NETNuGet | Microsoft.AspNetCore.Mvc.Core | ≥ 1.1.0&&< 1.1.3 | 1.1.3dotnet add package Microsoft.AspNetCore.Mvc.Core --version 1.1.3 |
| .NETNuGet | System.Net.Http | ≥ 4.1.1&&< 4.1.2 | 4.1.2dotnet add package System.Net.Http --version 4.1.2 |
| .NETNuGet | System.Net.Http | ≥ 4.3.1&&< 4.3.2 | 4.3.2dotnet add package System.Net.Http --version 4.3.2 |
Affected Products
.net frameworkmicrosoftDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for Microsoft.AspNetCore.Mvc, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update Microsoft.AspNetCore.Mvc to 1.0.4 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2017-0248 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2017-0248 in your dependencies?
Find it across NuGet, including transitive dependencies.