GitHub Advisory Database
GHSA-6xh7-4v2w-36q6
ASP.NET Core fails to properly validate web requests
Details
A denial of service vulnerability exists when the ASP.NET Core fails to properly validate web requests. NOTE: Microsoft has not commented on third-party claims that the issue is that the TextEncoder.EncodeCore function in the System.Text.Encodings.Web package in ASP.NET Core Mvc before 1.0.4 and 1.1.x before 1.1.3 allows remote attackers to cause a denial of service by leveraging failure to properly calculate the length of 4-byte characters in the Unicode Non-Character range.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| NuGet | Microsoft.AspNetCore.Mvc | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Core | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Core | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | System.Net.Http | From 4.1.1 before 4.1.2 (fixed in 4.1.2) |
| NuGet | System.Net.Http | From 4.3.1 before 4.3.2 (fixed in 4.3.2) |
| NuGet | System.Text.Encodings.Web | From 4.0.0 before 4.0.1 (fixed in 4.0.1) |
| NuGet | System.Text.Encodings.Web | From 4.3.0 before 4.3.1 (fixed in 4.3.1) |
| NuGet | System.Net.Http.WinHttpHandler | From 4.0.0 before 4.0.1 (fixed in 4.0.1) |
| NuGet | System.Net.Http.WinHttpHandler | From 4.3.0 before 4.5.4 (fixed in 4.5.4) |
| NuGet | System.Net.Security | From 4.0.0 before 4.0.1 (fixed in 4.0.1) |
| NuGet | System.Net.Security | From 4.3.0 before 4.3.1 (fixed in 4.3.1) |
| NuGet | System.Net.WebSockets.Client | From 4.0.0 before 4.0.1 (fixed in 4.0.1) |
| NuGet | System.Net.WebSockets.Client | From 4.3.0 before 4.3.1 (fixed in 4.3.1) |
| NuGet | Microsoft.AspNetCore.Mvc.Abstractions | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Abstractions | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.ApiExplorer | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.ApiExplorer | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Cors | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Cors | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.DataAnnotations | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.DataAnnotations | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Formatters.Json | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Formatters.Json | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Formatters.Xml | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Formatters.Xml | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Localization | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Localization | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Razor.Host | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Razor.Host | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.Razor | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.Razor | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.TagHelpers | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.TagHelpers | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.ViewFeatures | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.ViewFeatures | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
| NuGet | Microsoft.AspNetCore.Mvc.WebApiCompatShim | From 1.0.0 before 1.0.4 (fixed in 1.0.4) |
| NuGet | Microsoft.AspNetCore.Mvc.WebApiCompatShim | From 1.1.0 before 1.1.3 (fixed in 1.1.3) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-0247
- https://github.com/aspnet/Announcements/issues/239
- https://github.com/advisories/GHSA-6xh7-4v2w-36q6
- https://technet.microsoft.com/en-us/library/security/4021279.aspx
- https://www.sidertia.com/Home/Community/Blog/2017/05/18/ASPNET-Core-Unicode-Non-Char-Encoding-DoS