cve.bz

CVE-2025-21171 microsoft: Heap-based Buffer Overflow

7.5 highEPSS 1.7%Fix available

High (7.5) in microsoft. EPSS 1.7% estimated probability of exploitation activity in the next 30 days. Fixed in Microsoft.NetCore.App.Runtime.linux-arm 9.0.1.

On this page
.NET Remote Code Execution Vulnerability

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.7% (unchanged from 1.7% a week ago; 1.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 78th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-01-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • Microsoft.NetCore.App.Runtime.linux-arm (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.linux-arm64 (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.linux-musl-arm (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.linux-musl-arm64 (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.linux-musl-x64 (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.linux-x64 (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.osx-arm64 (NuGet): fixed in 9.0.1
  • Microsoft.NetCore.App.Runtime.osx-x64 (NuGet): fixed in 9.0.1
  • Ubuntu, Red Hat, AlmaLinux, Rocky Linux, Alpine: fixed package versions per release
  • Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21171

Ask an AI about this CVE

Show the promptExplain CVE-2025-21171 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-21171?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-21171?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-21171 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Microsoft .NET 9.0from 9.0.0 before 9.0.1
Microsoft Visual Studio 2022 version 17.10from 17.10.0 before 17.10.10
Microsoft Visual Studio 2022 version 17.12from 17.12.0 before 17.12.4
Microsoft Visual Studio 2022 version 17.6from 17.6.0 before 17.6.22
Microsoft Visual Studio 2022 version 17.8from 17.8.0 before 17.8.17
Microsoft PowerShell 7.5from 7.5.0 before 7.5.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.linux-arm>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.linux-arm64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.linux-musl-arm>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.linux-musl-arm64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.linux-musl-x64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.linux-x64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.osx-arm64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.osx-x64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.win-arm>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.win-arm64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.win-x64>=9.0.0 <9.0.19.0.1
GHSA-p54p-p3qm-8vgjNuGetMicrosoft.NetCore.App.Runtime.win-x86>=9.0.0 <9.0.19.0.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSdotnet7no fix listedUBUNTU-CVE-2025-21171
Ubuntu22.04:LTSdotnet88.0.112-8.0.12-0ubuntu1~22.04.1USN-7210-1
Ubuntu24.04:LTSdotnet88.0.112-8.0.12-0ubuntu1~24.04.1USN-7210-1
Red Hatenterprise_linux:8::appstreamdotnet, dotnet9.0, dotnet-sdk-9.0 and 8 more0:9.0.102-1.el8_10RHSA-2025:0382
Red Hatenterprise_linux:8::appstreamdotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 10 more0:9.0.1-1.el8_10RHSA-2025:0382
Red Hatenterprise_linux:8::crbdotnet-host-debuginfo, dotnet-hostfxr-9.0-debuginfo, dotnet-runtime-9.0-debuginfo and 1 more0:9.0.1-1.el8_10RHSA-2025:0382
Red Hatenterprise_linux:8::crbdotnet9.0-debuginfo, dotnet9.0-debugsource, dotnet-sdk-9.0-debuginfo and 2 more0:9.0.102-1.el8_10RHSA-2025:0382
Red Hatenterprise_linux:9::appstreamdotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 10 more0:9.0.1-1.el9_5RHBA-2025:0305
Red Hatenterprise_linux:9::appstreamdotnet9.0, dotnet-sdk-9.0, dotnet-sdk-aot-9.0 and 7 more0:9.0.102-1.el9_5RHBA-2025:0305
Red Hatenterprise_linux:9::crbdotnet-host-debuginfo, dotnet-hostfxr-9.0-debuginfo, dotnet-runtime-9.0-debuginfo and 1 more0:9.0.1-1.el9_5RHBA-2025:0305
Red Hatenterprise_linux:9::crbdotnet9.0-debuginfo, dotnet9.0-debugsource, dotnet-sdk-9.0-debuginfo and 2 more0:9.0.102-1.el9_5RHBA-2025:0305
AlmaLinux8dotnet, dotnet-sdk-9.0, dotnet-sdk-aot-9.0 and 4 more9.0.102-1.el8_10ALSA-2025:0382
AlmaLinux8dotnet-host, dotnet-hostfxr-9.0, dotnet-runtime-9.0 and 6 more9.0.1-1.el8_10ALSA-2025:0382
Rocky Linux8dotnet9.00:9.0.102-1.el8_10RLSA-2025:0382
Alpinev3.21, v3.22, v3.23 and 1 moredotnet9-runtime9.0.1-r0ALPINE-CVE-2025-21171

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This issue affects .NET Framework version 9.0 as shipped with all versions of RHEL. However, this flaw is not known to be exploitable under any supported scenario.

```

.NET 6.0 for RHEL-8, RHEL-9 and RHIVOS has reached its End of Life as of November 12, 2024, and is no longer supported. For additional information about lifecycle for .NET on Red Hat Enterprise Linux, please refer to: https://access.redhat.com/support/policy/updates/net-core.

```

Red Hat's mitigation

Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8dotnet9.0-0:9.0.102-1.el8_10Fixed 2025-01-16RHSA-2025:0382
Red Hat Enterprise Linux 9dotnet9.0-0:9.0.102-1.el9_5Fixed 2025-01-14RHBA-2025:0305
Red Hat Enterprise Linux 10dotnet8.0Not affected
Red Hat Enterprise Linux 10dotnet9.0Not affected
Red Hat Enterprise Linux 8dotnet8.0Not affected
Red Hat Enterprise Linux 9dotnet6.0Out of support scope
Red Hat Enterprise Linux 9dotnet7.0Out of support scope
Red Hat Enterprise Linux 9dotnet8.0Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-21171.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON