# CVE-2017-0247: ASP.NET Core fails to properly validate web requests

Source: https://junglewise.ai/threats/cve-2017-0247-asp-net-core-fails-to-properly-validate-web-requests  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2018-10-16  
License: CC BY 4.0 with a link back

CVE-2017-0247 · Severity: low · CVSS 3 · Published 2018-10-16

ASP.NET Core fails to properly validate web requests

Technologies: [Microsoft.AspNetCore.Mvc (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc), [Microsoft.AspNetCore.Mvc.Abstractions (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-abstractions), [Microsoft.AspNetCore.Mvc.ApiExplorer (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-apiexplorer), [Microsoft.AspNetCore.Mvc.Core (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-core), [Microsoft.AspNetCore.Mvc.Cors (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-cors), [Microsoft.AspNetCore.Mvc.DataAnnotations (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-dataannotations), [Microsoft.AspNetCore.Mvc.Formatters.Json (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-formatters-json), [Microsoft.AspNetCore.Mvc.Formatters.Xml (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-formatters-xml), [Microsoft.AspNetCore.Mvc.Localization (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-localization), [Microsoft.AspNetCore.Mvc.Razor (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-razor), [Microsoft.AspNetCore.Mvc.Razor.Host (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-razor-host), [Microsoft.AspNetCore.Mvc.TagHelpers (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-taghelpers), [Microsoft.AspNetCore.Mvc.ViewFeatures (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-viewfeatures), [Microsoft.AspNetCore.Mvc.WebApiCompatShim (NuGet)](https://junglewise.ai/threats/technologies/microsoft-aspnetcore-mvc-webapicompatshim), [System.Net.Http (NuGet)](https://junglewise.ai/threats/technologies/system-net-http), [System.Net.Http.WinHttpHandler (NuGet)](https://junglewise.ai/threats/technologies/system-net-http-winhttphandler), [System.Net.Security (NuGet)](https://junglewise.ai/threats/technologies/system-net-security), [System.Net.WebSockets.Client (NuGet)](https://junglewise.ai/threats/technologies/system-net-websockets-client), [System.Text.Encodings.Web (NuGet)](https://junglewise.ai/threats/technologies/system-text-encodings-web). Vendors: [NuGet](https://junglewise.ai/threats/vendors/nuget).

## Quick answers

**Is CVE-2017-0247 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2017-0247 being exploited in the wild.

**How severe is CVE-2017-0247?** Low severity, with a CVSS score of 3, published 16 October 2018.

**Which products and versions are affected?** Microsoft.AspNetCore.Mvc (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4; Microsoft.AspNetCore.Mvc.Abstractions (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4; Microsoft.AspNetCore.Mvc.ApiExplorer (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4; Microsoft.AspNetCore.Mvc.Core (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4; and 15 more.

**Is there a fix for CVE-2017-0247?** Yes. Microsoft.AspNetCore.Mvc (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Abstractions (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.ApiExplorer (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Core (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Cors (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.DataAnnotations (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Formatters.Json (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Formatters.Xml (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Localization (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Razor (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.Razor.Host (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.TagHelpers (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.ViewFeatures (NuGet): upgrade to 1.0.4 or later; Microsoft.AspNetCore.Mvc.WebApiCompatShim (NuGet): upgrade to 1.0.4 or later; System.Net.Http (NuGet): upgrade to 4.1.2 or later; System.Net.Http.WinHttpHandler (NuGet): upgrade to 4.0.1 or later; System.Net.Security (NuGet): upgrade to 4.0.1 or later; System.Net.WebSockets.Client (NuGet): upgrade to 4.0.1 or later; System.Text.Encodings.Web (NuGet): upgrade to 4.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2017-0247?** Check whether you run Microsoft.AspNetCore.Mvc (NuGet), Microsoft.AspNetCore.Mvc.Abstractions (NuGet), Microsoft.AspNetCore.Mvc.ApiExplorer (NuGet) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Microsoft.AspNetCore.Mvc (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Abstractions (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Abstractions --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.ApiExplorer (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.ApiExplorer --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Core (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Core --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Cors (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Cors --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.DataAnnotations (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.DataAnnotations --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Formatters.Json (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Formatters.Json --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Formatters.Xml (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Formatters.Xml --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Localization (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Localization --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Razor (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Razor --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.Razor.Host (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.Razor.Host --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.TagHelpers (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.TagHelpers --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.ViewFeatures (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.ViewFeatures --version 1.0.4
  ```

- Microsoft.AspNetCore.Mvc.WebApiCompatShim (NuGet): upgrade to 1.0.4 or later

  ```sh
  dotnet add package Microsoft.AspNetCore.Mvc.WebApiCompatShim --version 1.0.4
  ```

- System.Net.Http (NuGet): upgrade to 4.1.2 or later

  ```sh
  dotnet add package System.Net.Http --version 4.1.2
  ```

- System.Net.Http.WinHttpHandler (NuGet): upgrade to 4.0.1 or later

  ```sh
  dotnet add package System.Net.Http.WinHttpHandler --version 4.0.1
  ```

- System.Net.Security (NuGet): upgrade to 4.0.1 or later

  ```sh
  dotnet add package System.Net.Security --version 4.0.1
  ```

- System.Net.WebSockets.Client (NuGet): upgrade to 4.0.1 or later

  ```sh
  dotnet add package System.Net.WebSockets.Client --version 4.0.1
  ```

- System.Text.Encodings.Web (NuGet): upgrade to 4.0.1 or later

  ```sh
  dotnet add package System.Text.Encodings.Web --version 4.0.1
  ```


## Affected products

- Microsoft.AspNetCore.Mvc (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Abstractions (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.ApiExplorer (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Core (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Cors (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.DataAnnotations (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Formatters.Json (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Formatters.Xml (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Localization (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Razor (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.Razor.Host (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.TagHelpers (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.ViewFeatures (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- Microsoft.AspNetCore.Mvc.WebApiCompatShim (NuGet) ECOSYSTEM:introduced=1.0.0,fixed=1.0.4
- System.Net.Http (NuGet) ECOSYSTEM:introduced=4.1.1,fixed=4.1.2
- System.Net.Http.WinHttpHandler (NuGet) ECOSYSTEM:introduced=4.0.0,fixed=4.0.1
- System.Net.Security (NuGet) ECOSYSTEM:introduced=4.0.0,fixed=4.0.1
- System.Net.WebSockets.Client (NuGet) ECOSYSTEM:introduced=4.0.0,fixed=4.0.1
- System.Text.Encodings.Web (NuGet) ECOSYSTEM:introduced=4.0.0,fixed=4.0.1

## Identifiers

- CVE-2017-0247
- GHSA-6xh7-4v2w-36q6

## Related threats

- [Open redirect in ASP.NET Core](https://junglewise.ai/threats/cve-2017-11879-open-redirect-in-asp-net-core)
- [Cross-origin Resource Sharing bypass in ASP.NET Core](https://junglewise.ai/threats/cve-2017-8700-cross-origin-resource-sharing-bypass-in-asp-net-core)
- [.NET Core Remote Code Execution Vulnerability](https://junglewise.ai/threats/cve-2021-26701-net-core-remote-code-execution-vulnerability)
- [.NET Core Information Disclosure](https://junglewise.ai/threats/cve-2018-8292-net-core-information-disclosure)
- [Moderate severity vulnerability that affects Microsoft.AspNetCore.Mvc and Microsoft.AspNetCore.Mvc.Core](https://junglewise.ai/threats/cve-2017-0248-moderate-severity-vulnerability-that-affects-microsoft-aspnetcore)
