CVE-2025-21176.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability
.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability
What to do
Fixed builds are available from AlmaLinux, Alpine, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | dotnet8 | Fixed | 8.0.112-8.0.12-0ubuntu1~24.04.1 | UBUNTU-CVE-2025-21176 |
| Ubuntu 22.04 | dotnet6 | Will not fix .NET 6 and .NET 7 are end of life upstream. | UBUNTU-CVE-2025-21176 | |
| Ubuntu 22.04 | dotnet7 | Will not fix .NET 6 and .NET 7 are end of life upstream. | UBUNTU-CVE-2025-21176 | |
| Ubuntu 22.04 | dotnet8 | Fixed | 8.0.112-8.0.12-0ubuntu1~22.04.1 | UBUNTU-CVE-2025-21176 |
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | aspnetcore-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-apphost-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-host | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-hostfxr-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-runtime-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-8.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-9.0-source-built-artifacts | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-aot-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-sdk-dbg-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-targeting-pack-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet-templates-9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet8.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | dotnet9.0 | Not affected | ||
| Red Hat Enterprise Linux 10 | netstandard-targeting-pack-2.1 | Not affected | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | aspnetcore-runtime-dbg-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | aspnetcore-targeting-pack-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-apphost-pack-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-host | Fixed Out of support scope | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-hostfxr-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-runtime-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-runtime-dbg-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-6.0-source-built-artifacts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-7.0-source-built-artifacts | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-8.0-source-built-artifacts | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-9.0 | Fixed | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-9.0-source-built-artifacts | Fixed | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-aot-9.0 | Fixed | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-sdk-dbg-9.0 | Fixed | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-targeting-pack-9.0 | Fixed | 0:9.0.1-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet-templates-6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet-templates-8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet-templates-9.0 | Fixed | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | dotnet6.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet7.0 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 9 | dotnet8.0 | Fixed | 0:8.0.112-1.el9_5 | RHBA-2025:0304 |
| Red Hat Enterprise Linux 9 | dotnet9.0 | Fixed | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 9 | netstandard-targeting-pack-2.1 | Fixed Out of support scope | 0:9.0.102-1.el9_5 | RHBA-2025:0305 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | aspnetcore-runtime-dbg-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | aspnetcore-targeting-pack-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-apphost-pack-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-host | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-hostfxr-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-runtime-dbg-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-8.0-source-built-artifacts | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-9.0 | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-9.0-source-built-artifacts | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-aot-9.0 | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-sdk-dbg-9.0 | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-8.0 | Fixed | 0:8.0.12-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-targeting-pack-9.0 | Fixed | 0:9.0.1-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet-templates-8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet-templates-9.0 | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | dotnet8.0 | Fixed | 0:8.0.112-1.el8_10 | RHSA-2025:0381 |
| Red Hat Enterprise Linux 8 | dotnet9.0 | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| Red Hat Enterprise Linux 8 | netstandard-targeting-pack-2.1 | Fixed | 0:9.0.102-1.el8_10 | RHSA-2025:0382 |
| AlmaLinux 8 | aspnetcore-runtime-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | aspnetcore-runtime-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | aspnetcore-runtime-dbg-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | aspnetcore-runtime-dbg-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | aspnetcore-targeting-pack-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | aspnetcore-targeting-pack-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-apphost-pack-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-apphost-pack-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-host | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-hostfxr-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-hostfxr-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-runtime-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-runtime-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-runtime-dbg-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-runtime-dbg-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-sdk-8.0 | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-sdk-8.0-source-built-artifacts | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-sdk-9.0 | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-sdk-9.0-source-built-artifacts | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-sdk-aot-9.0 | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-sdk-dbg-8.0 | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-sdk-dbg-9.0 | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-targeting-pack-8.0 | Fixed | 8.0.12-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-targeting-pack-9.0 | Fixed | 9.0.1-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | dotnet-templates-8.0 | Fixed | 8.0.112-1.el8_10 | ALSA-2025:0381 |
| AlmaLinux 8 | dotnet-templates-9.0 | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| AlmaLinux 8 | netstandard-targeting-pack-2.1 | Fixed | 9.0.102-1.el8_10 | ALSA-2025:0382 |
| Rocky Linux 8 | dotnet8.0 | Fixed | 0:8.0.112-1.el8_10 | RLSA-2025:0381 |
| Rocky Linux 8 | dotnet9.0 | Fixed | 0:9.0.102-1.el8_10 | RLSA-2025:0382 |
| Alpine Linux 3.24 | dotnet8-runtime | Fixed | 8.0.12-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.24 | dotnet9-runtime | Fixed | 9.0.1-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.23 | dotnet8-runtime | Fixed | 8.0.12-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.23 | dotnet9-runtime | Fixed | 9.0.1-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.22 | dotnet8-runtime | Fixed | 8.0.12-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.22 | dotnet9-runtime | Fixed | 9.0.1-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.21 | dotnet8-runtime | Fixed | 8.0.12-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.21 | dotnet9-runtime | Fixed | 9.0.1-r0 | ALPINE-CVE-2025-21176 |
| Alpine Linux 3.20 | dotnet8-runtime | Fixed | 8.0.12-r0 | ALPINE-CVE-2025-21176 |
What the vendor says
As published in the CVE record by microsoft, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Microsoft .NET 8.0: affected: 8.0.0 to before 8.0.12; fixed in
8.0.12 - Microsoft .NET 9.0: affected: 9.0.0 to before 9.0.1; fixed in
9.0.1 - Microsoft .NET Framework 3.5 AND 4.6.2/4.7/4.7.1/4.7.2: affected: 3.0.0.0 to before 10.0.14393.7699; fixed in
10.0.14393.7699 - Microsoft .NET Framework 3.5 AND 4.7.2: affected: 4.7.0 to before 4.7.04126.01; fixed in
4.7.04126.01 - Microsoft .NET Framework 3.5 AND 4.8: affected: 4.8.0 to before 4.8.04775.01; fixed in
4.8.04775.01 - Microsoft .NET Framework 3.5 AND 4.8.1: affected: 4.8.1 to before 4.8.1.09294.01; fixed in
4.8.1.09294.01 - Microsoft .NET Framework 4.6.2: affected: 4.7.0 to before 4.7.04126.01; fixed in
4.7.04126.01 - Microsoft .NET Framework 4.6.2/4.7/4.7.1/4.7.2: affected: 4.7.0 to before 4.7.04126.01; fixed in
4.7.04126.01 - Microsoft .NET Framework 4.6/4.6.2: affected: 10.0.0.0 to before 10.0.10240.20890; fixed in
10.0.10240.20890 - Microsoft .NET Framework 4.8: affected: 4.8.0 to before 4.8.04775.01; fixed in
4.8.04775.01 - Microsoft Visual Studio 2015 Update 3: affected: 14.0.0 to before 14.0.24252.2; fixed in
14.0.24252.2 - Microsoft Visual Studio 2017 version 15.9 (includes 15.0 - 15.8): affected: 15.9.0 to before 15.9.69; fixed in
15.9.69
Vendor advisories:
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21176 (patch, vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.