Microsoft.DotNet.ILCompiler: Microsoft Security Advisory CVE-2026-111497 - .NET Brotli Decoder Out-of-bounds Write
Affects Microsoft.DotNet.ILCompilerSource GCVE Database
Mentioned vulnerabilities
CVSS 8.1 High : upgrade to 8.0.33 soon.
Data as of 3 Nov 2026, 18:29 UTC
- Patch
- Available – fixed in 8.0.33, 9.0.22, 10.0.14 +1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HWhat to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| NuGetMicrosoft.DotNet.ILCompiler | Affected
| Fixed in
|
| NuGetMicrosoft.NETCore.App.Runtime.NativeAOT.ios-arm64 | Affected
| Fixed in
|
| NuGetMicrosoft.NETCore.App.Runtime.NativeAOT.iossimulator-arm64 | Affected
| Fixed in
|
| NuGetMicrosoft.NETCore.App.Runtime.NativeAOT.iossimulator-x64 | Affected
| Fixed in
|
| NuGetMicrosoft.NETCore.App.Runtime.NativeAOT.linux-bionic-arm64 | Affected
| Fixed in
|
| NuGetMicrosoft.NETCore.App.Runtime.NativeAOT.linux-bionic-x64 | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
## Executive summary A buffer overflow vulnerability exists in the Brotli decompression library used by .NET. This vulnerability may allow an unauthenticated attacker to read or corrupt process memory. This could lead to information disclosure, denial of service, or elevation of privilege. ASP.NET Core and HttpClient do not automatically decompress Brotli data in their default configurations. Applications are exposed when they enable Brotli decompression or explicitly use Brotli decompression APIs to process attacker-controlled data, as described below. .NET Framework is not affected. ## Announcement Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/494 ## CVSS Details - **Version:** 3.1 - **Severity:** High - **Score:** 8.1 - **Vector:** `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C` - **Weakness:** CWE-787 (Out-of-bounds Write) ## Affected Platforms - **Platforms:** All - **Architectures:** All ## Mitigations ASP.NET Core request decompression and HttpClient automatic response decompression are not enabled by default. An application is not exposed merely because an affected .NET package is installed. Exposure requires the application to decompress attacker-controlled Brotli data through one of these paths: - Enable ASP.NET Core [automatic request decompression](https://learn.microsoft.com/aspnet/core/fundamentals/middleware/request-decompression) with Brotli (`br`) support. - Enable HttpClient automatic response decompression by configuring [HttpClientHandler.AutomaticDecompression](https://learn.microsoft.com/dotnet/api/system.net.http.httpclienthandler.automaticdecompression) or [SocketsHttpHandler.AutomaticDecompression](https://learn.microsoft.com/dotnet/api/system.net.http.socketshttphandler.automaticdecompression) to include [DecompressionMethods.Brotli](https://learn.microsoft.com/dotnet/api/system.net.decompressionmethods) or `DecompressionMethods.All`. - Explicitly use Brotli decompression APIs in `System.IO.Compression`, such as `BrotliStream` or `BrotliDecoder`. Until the update can be deployed, avoid decompressing attacker-controlled Brotli data. The following examples show how to disable Brotli decompression if you are already using it. > **Warning: Do not use these code snippets if you are not already using decompression.** Do not introduce a call to `AddRequestDecompression` if your application does not already call it. Similarly, do not introduce an `AutomaticDecompression` property assignment if your application does not already set that property. Modify only your existing decompression configuration. Enabling automatic decompression can introduce denial-of-service risks even when Brotli is excluded. If you are already using Brotli request decompression in ASP.NET Core, exclude it by removing the `br` entry from your existing decompression configuration. This retains the default gzip and deflate providers: ```csharp builder.Services.AddRequestDecompression(options => { options.DecompressionProviders.Remove("br"); }); ``` If your application already enables HttpClient automatic response decompression, disable Brotli by updating the flags on your existing handler so they do not include `DecompressionMethods.Brotli`: ```csharp var handler = new HttpClientHandler { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; var httpClient = new HttpClient(handler); ``` Applications that directly use Brotli decompression APIs must stop passing untrusted Brotli data to those APIs until updated. Ensure that other application code does not continue to decompress the same untrusted Brotli data. These changes can affect normal request and response handling and should be tested before deployment. Installing the security update remains the recommended fix. ## <a name="affected-packages"></a>Affected Packages The vulnerability affects .NET applications using an affected Brotli decoder in the runtime or NativeAOT packages listed below. ### .NET 8 Package name | Affected version | Patched version ------------ | ---------------- | --------------- [Microsoft.DotNet.ILCompiler](https://www.nuget.org/packages/Microsoft.DotNet.ILCompiler) | >= 8.0.0, < 8.0.33 | 8.0.33 [Microsoft.NETCore.App.Runtime.NativeAOT.ios-arm64](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.NativeAOT.ios-arm64) | >= 8.0.0, < 8.0.33 | 8.0.33 [Microsoft.NETCore.App.Runtime.NativeAOT.iossimulator-arm64](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.NativeAOT.iossimulator-arm64) | >= 8.0.0, < 8.0.33 | 8.0.33 [Microsoft.NETCore.App.Runtime.NativeAOT.iossimulator-x64](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.NativeAOT.iossimulator-x64) | >= 8.0.0, < 8.0.33 | 8.0.33 [Microsoft.NETCore.App.Runtime.NativeAOT.linux-bionic-arm64](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime.NativeAOT.linux-bionic-arm64) | >= 8.0.0, < 8.0.33 | 8.0.33 [Microsoft.NETCore.App.Runtime.NativeA
References
- github.com/dotnet/runtime/security/advisories/GHSA-p3jp-9v83-76w9 (opens in a new tab)
- github.com/dotnet/announcements/issues/494 (opens in a new tab)
- github.com/dotnet/runtime/issues/136446 (opens in a new tab)
- github.com/dotnet/runtime/pull/136471 (opens in a new tab)
- github.com/dotnet/runtime/commit/f3d8b2f230bc7c9899df6eef2d41e2748107cffa (opens in a new tab)
- github.com/dotnet/runtime (opens in a new tab)