# CVE-2025-21171: .NET Remote Code Execution Vulnerability

CVE-2025-21171 is fixed in 24 products on 3 platforms, first by RHBA-2025:0305, released January 14, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2025-21171
- Priority: High
- CVSS: 7.5 (Important)
- EPSS: 0.0172
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Vendor exploitability assessment: Exploitation Less Likely
- Published: Jan 14, 2025
- Weakness: Heap-based Buffer Overflow
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21171

## Description

.NET Remote Code Execution Vulnerability

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Microsoft | .NET 9.0 runtime installed on Linux |  | [KB5050526](https://patchblox.com/security/data/fix/microsoft/kb5050526.md) | Jan 14, 2025 |
| Microsoft | .NET 9.0 runtime installed on Mac OS |  | [KB5050526](https://patchblox.com/security/data/fix/microsoft/kb5050526.md) | Jan 14, 2025 |
| Microsoft | .NET 9.0 runtime installed on Windows |  | [KB5050526](https://patchblox.com/security/data/fix/microsoft/kb5050526.md) | Jan 14, 2025 |
| Windows apps | PowerShell | 7.5.1.0 | [PowerShell 7.5.1.0](https://patchblox.com/security/data/fix/windows-app/microsoft.powershell-7.5.1.0.md) | Apr 24, 2025 |
| Linux | aspnetcore-runtime-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | aspnetcore-runtime-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | aspnetcore-runtime-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [aspnetcore-runtime-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-aspnetcore-runtime-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | aspnetcore-runtime-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | aspnetcore-runtime-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | aspnetcore-runtime-dbg-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | aspnetcore-runtime-dbg-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | aspnetcore-runtime-dbg-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | aspnetcore-runtime-dbg-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | aspnetcore-targeting-pack-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | aspnetcore-targeting-pack-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | aspnetcore-targeting-pack-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [aspnetcore-targeting-pack-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-aspnetcore-targeting-pack-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | aspnetcore-targeting-pack-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | aspnetcore-targeting-pack-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-apphost-pack-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-apphost-pack-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-apphost-pack-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [dotnet-apphost-pack-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-apphost-pack-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-apphost-pack-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-apphost-pack-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-host RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-host RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-host almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-host ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-host-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [dotnet-host-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-host-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-hostfxr-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-hostfxr-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-hostfxr-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [dotnet-hostfxr-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-hostfxr-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-hostfxr-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-hostfxr-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-runtime-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-runtime-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-runtime-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [dotnet-runtime-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-runtime-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-runtime-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-runtime-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-runtime-dbg-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-runtime-dbg-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-runtime-dbg-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-runtime-dbg-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-sdk-9.0 RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-9.0 RHEL 9 | 0:9.0.102-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-sdk-9.0 Ubuntu 24.10 (oracular) | 9.0.102-0ubuntu1~24.10.1 | [dotnet-sdk-9.0 9.0.102-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-sdk-9.0-9.0.102-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-sdk-9.0 almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-9.0 ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-sdk-9.0-source-built-artifacts RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-9.0-source-built-artifacts RHEL 9 | 0:9.0.102-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-sdk-9.0-source-built-artifacts Ubuntu 24.10 (oracular) | 9.0.102-0ubuntu1~24.10.1 | [dotnet-sdk-9.0-source-built-artifacts 9.0.102-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-sdk-9.0-source-built-artifacts-9.0.102-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-sdk-9.0-source-built-artifacts almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-9.0-source-built-artifacts ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-sdk-aot-9.0 RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-aot-9.0 RHEL 9 | 0:9.0.102-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-sdk-aot-9.0 Ubuntu 24.10 (oracular) | 9.0.102-0ubuntu1~24.10.1 | [dotnet-sdk-aot-9.0 9.0.102-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-sdk-aot-9.0-9.0.102-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-sdk-aot-9.0 almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-aot-9.0 ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-sdk-dbg-9.0 RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-dbg-9.0 RHEL 9 | 0:9.0.102-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-sdk-dbg-9.0 almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-sdk-dbg-9.0 ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-targeting-pack-9.0 RHEL 8 | 0:9.0.1-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-targeting-pack-9.0 RHEL 9 | 0:9.0.1-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-targeting-pack-9.0 Ubuntu 24.10 (oracular) | 9.0.1-0ubuntu1~24.10.1 | [dotnet-targeting-pack-9.0 9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-targeting-pack-9.0-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-targeting-pack-9.0 almalinux 8 | 9.0.1-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-targeting-pack-9.0 ol 8 | 0:9.0.1-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet-templates-9.0 RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-templates-9.0 RHEL 9 | 0:9.0.102-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | dotnet-templates-9.0 Ubuntu 24.10 (oracular) | 9.0.102-0ubuntu1~24.10.1 | [dotnet-templates-9.0 9.0.102-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet-templates-9.0-9.0.102-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet-templates-9.0 almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | dotnet-templates-9.0 ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | dotnet9 Ubuntu 24.10 (oracular) | 9.0.102-9.0.1-0ubuntu1~24.10.1 | [dotnet9 9.0.102-9.0.1-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-dotnet9-9.0.102-9.0.1-0ubuntu1-24.10.1.md) | Jan 15, 2025 |
| Linux | dotnet9.0 rocky 8 | 0:9.0.102-1.el8_10 | [RLSA-2025:0382](https://patchblox.com/security/data/fix/linux/rlsa-2025-0382.md) | Feb 13, 2025 |
| Linux | netstandard-targeting-pack-2.1 RHEL 8 | 0:9.0.102-1.el8_10 | [RHSA-2025:0382](https://patchblox.com/security/data/fix/linux/rhsa-2025-0382.md) | Jan 16, 2025 |
| Linux | netstandard-targeting-pack-2.1 RHEL 9 | 0:9.0.102-1.el9_5 | [RHBA-2025:0305](https://patchblox.com/security/data/fix/linux/rhba-2025-0305.md) | Jan 14, 2025 |
| Linux | netstandard-targeting-pack-2.1 almalinux 8 | 9.0.102-1.el8_10 | [ALSA-2025:0382](https://patchblox.com/security/data/fix/linux/alsa-2025-0382.md) | Jan 16, 2025 |
| Linux | netstandard-targeting-pack-2.1 ol 8 | 0:9.0.102-1.0.1.el8_10 | [ELSA-2025-0382](https://patchblox.com/security/data/fix/linux/elsa-2025-0382.md) | Jan 17, 2025 |
| Linux | netstandard-targeting-pack-2.1-9.0 Ubuntu 24.10 (oracular) | 9.0.102-0ubuntu1~24.10.1 | [netstandard-targeting-pack-2.1-9.0 9.0.102-0ubuntu1~24.10.1](https://patchblox.com/security/data/fix/linux/ubuntu-oracular-netstandard-targeting-pack-2.1-9.0-9.0.102-0ubuntu1-24.10.1.md) | Jan 15, 2025 |

---

Data as of 2026-11-08T00:53:09Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
