CVEfocus › CVE database › CVE-2025-21172

CVE-2025-21172.NET and Visual Studio Remote Code Execution Vulnerability

CVSS 7.5 HighEPSS 1.5% (higher than 74% of CVEs)Published 2025-01-14Updated 2026-06-09Assigner: microsoft

.NET and Visual Studio Remote Code Execution Vulnerability

CWE-122CWE-190

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

100Fixed
22Will not fix
29Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04dotnet8Fixed8.0.112-8.0.12-0ubuntu1~24.04.1UBUNTU-CVE-2025-21172
Ubuntu 22.04dotnet6Will not fix
.NET 6 and .NET 7 are end of life upstream.
UBUNTU-CVE-2025-21172
Ubuntu 22.04dotnet7Will not fix
.NET 6 and .NET 7 are end of life upstream.
UBUNTU-CVE-2025-21172
Ubuntu 22.04dotnet8Fixed8.0.112-8.0.12-0ubuntu1~22.04.1UBUNTU-CVE-2025-21172
Red Hat Enterprise Linux 10aspnetcore-runtime-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-9.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 10aspnetcore-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 10aspnetcore-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 10dotnet-apphost-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-apphost-pack-9.0Not affected
Red Hat Enterprise Linux 10dotnet-hostNot affected
Red Hat Enterprise Linux 10dotnet-hostfxr-8.0Not affected
Red Hat Enterprise Linux 10dotnet-hostfxr-9.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-8.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-9.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-dbg-8.0Not affected
Red Hat Enterprise Linux 10dotnet-runtime-dbg-9.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-8.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-8.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 10dotnet-sdk-9.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-9.0-source-built-artifactsNot affected
Red Hat Enterprise Linux 10dotnet-sdk-aot-9.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-dbg-8.0Not affected
Red Hat Enterprise Linux 10dotnet-sdk-dbg-9.0Not affected
Red Hat Enterprise Linux 10dotnet-targeting-pack-8.0Not affected
Red Hat Enterprise Linux 10dotnet-targeting-pack-9.0Not affected
Red Hat Enterprise Linux 10dotnet-templates-8.0Not affected
Red Hat Enterprise Linux 10dotnet-templates-9.0Not affected
Red Hat Enterprise Linux 10dotnet8.0Not affected
Red Hat Enterprise Linux 10dotnet9.0Not affected
Red Hat Enterprise Linux 10netstandard-targeting-pack-2.1Not affected
Red Hat Enterprise Linux 9aspnetcore-runtime-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-runtime-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-runtime-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9aspnetcore-runtime-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9aspnetcore-runtime-dbg-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9aspnetcore-runtime-dbg-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9aspnetcore-targeting-pack-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-apphost-pack-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-apphost-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-apphost-pack-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-apphost-pack-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-hostFixed
Out of support scope
0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-hostfxr-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-hostfxr-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-hostfxr-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-runtime-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-runtime-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-runtime-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-runtime-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-runtime-dbg-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-runtime-dbg-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-sdk-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-6.0-source-built-artifactsWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-7.0-source-built-artifactsWill not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-sdk-8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-sdk-8.0-source-built-artifactsFixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-sdk-9.0Fixed0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-sdk-9.0-source-built-artifactsFixed0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-sdk-aot-9.0Fixed0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-sdk-dbg-8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-sdk-dbg-9.0Fixed0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-targeting-pack-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-targeting-pack-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-targeting-pack-8.0Fixed0:8.0.12-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-targeting-pack-9.0Fixed0:9.0.1-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet-templates-6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-templates-7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet-templates-8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet-templates-9.0Fixed0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9dotnet6.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet7.0Will not fix
Out of support scope
Red Hat Enterprise Linux 9dotnet8.0Fixed0:8.0.112-1.el9_5RHBA-2025:0304
Red Hat Enterprise Linux 9dotnet9.0Fixed0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 9netstandard-targeting-pack-2.1Fixed
Out of support scope
0:9.0.102-1.el9_5RHBA-2025:0305
Red Hat Enterprise Linux 8aspnetcore-runtime-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8aspnetcore-runtime-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8aspnetcore-runtime-dbg-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8aspnetcore-runtime-dbg-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8aspnetcore-targeting-pack-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnetFixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-apphost-pack-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-apphost-pack-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-hostFixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-hostfxr-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-hostfxr-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-runtime-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-runtime-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-runtime-dbg-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-runtime-dbg-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-sdk-8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-sdk-8.0-source-built-artifactsFixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-sdk-9.0Fixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-sdk-9.0-source-built-artifactsFixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-sdk-aot-9.0Fixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-sdk-dbg-8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-sdk-dbg-9.0Fixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-targeting-pack-8.0Fixed0:8.0.12-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-targeting-pack-9.0Fixed0:9.0.1-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet-templates-8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet-templates-9.0Fixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8dotnet8.0Fixed0:8.0.112-1.el8_10RHSA-2025:0381
Red Hat Enterprise Linux 8dotnet9.0Fixed0:9.0.102-1.el8_10RHSA-2025:0382
Red Hat Enterprise Linux 8netstandard-targeting-pack-2.1Fixed0:9.0.102-1.el8_10RHSA-2025:0382
AlmaLinux 8aspnetcore-runtime-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8aspnetcore-runtime-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8aspnetcore-runtime-dbg-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8aspnetcore-runtime-dbg-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8aspnetcore-targeting-pack-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8aspnetcore-targeting-pack-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnetFixed9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-apphost-pack-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-apphost-pack-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-hostFixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-hostfxr-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-hostfxr-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-runtime-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-runtime-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-runtime-dbg-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-runtime-dbg-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-sdk-8.0Fixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-sdk-8.0-source-built-artifactsFixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-sdk-9.0Fixed9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-sdk-9.0-source-built-artifactsFixed9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-sdk-aot-9.0Fixed9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-sdk-dbg-8.0Fixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-sdk-dbg-9.0Fixed9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-targeting-pack-8.0Fixed8.0.12-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-targeting-pack-9.0Fixed9.0.1-1.el8_10ALSA-2025:0382
AlmaLinux 8dotnet-templates-8.0Fixed8.0.112-1.el8_10ALSA-2025:0381
AlmaLinux 8dotnet-templates-9.0Fixed9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux 8netstandard-targeting-pack-2.1Fixed9.0.102-1.el8_10ALSA-2025:0382
Rocky Linux 8dotnet8.0Fixed0:8.0.112-1.el8_10RLSA-2025:0381
Rocky Linux 8dotnet9.0Fixed0:9.0.102-1.el8_10RLSA-2025:0382
Alpine Linux 3.24dotnet8-runtimeFixed8.0.12-r0ALPINE-CVE-2025-21172
Alpine Linux 3.24dotnet9-runtimeFixed9.0.1-r0ALPINE-CVE-2025-21172
Alpine Linux 3.23dotnet8-runtimeFixed8.0.12-r0ALPINE-CVE-2025-21172
Alpine Linux 3.23dotnet9-runtimeFixed9.0.1-r0ALPINE-CVE-2025-21172
Alpine Linux 3.22dotnet8-runtimeFixed8.0.12-r0ALPINE-CVE-2025-21172
Alpine Linux 3.22dotnet9-runtimeFixed9.0.1-r0ALPINE-CVE-2025-21172
Alpine Linux 3.21dotnet8-runtimeFixed8.0.12-r0ALPINE-CVE-2025-21172
Alpine Linux 3.21dotnet9-runtimeFixed9.0.1-r0ALPINE-CVE-2025-21172
Alpine Linux 3.20dotnet8-runtimeFixed8.0.12-r0ALPINE-CVE-2025-21172

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.

Vendor advisories:

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.