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

Published Jan 14, 2025
·
Updated

.NET and Visual Studio Remote Code Execution Vulnerability

Other sources

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

— Launchpad

Affected Software

56 affected componentsFixes available
Microsoft .NET 8.0 installed on Windows
Microsoft .NET 9.0 installed on Mac OS
Microsoft .NET 8.0 installed on Linux
Microsoft .NET 9.0 installed on Windows
Microsoft .NET 8.0 installed on Mac OS
Microsoft .NET 9.0 installed on Linux
Microsoft Visual Studio 2019 (includes 16.0 - 16.10)=16.11
Microsoft Visual Studio 2017 (includes 15.0 - 15.8)=15.9
Microsoft Visual Studio 2015=3
Microsoft Visual Studio 2022=17.10
Microsoft Visual Studio 2022=17.6
Microsoft Visual Studio 2022=17.12
Microsoft Visual Studio 2022=17.8
nuget/microsoft.netcore.app.runtime.linux-arm>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.linux-arm64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.linux-musl-arm>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.linux-musl-arm64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.linux-musl-x64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.linux-x64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.osx-arm64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.osx-x64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.win-arm>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.win-arm64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.win-x64>=8.0.0<8.0.12
8.0.12
nuget/microsoft.netcore.app.runtime.win-x86>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.win-x64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.win-arm64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.win-arm>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.osx-x64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.osx-arm64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.linux-x64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.linux-musl-x64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.linux-musl-arm64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.linux-musl-arm>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.linux-arm64>=9.0.0<9.0.1
9.0.1
nuget/microsoft.netcore.app.runtime.linux-arm>=9.0.0<9.0.1
9.0.1
All of the following
Any of the following
Microsoft .NET=8.0.0
Microsoft .NET=9.0.0
Any of the following
Apple macOS
Linux Linux kernel
Microsoft Windows
Microsoft Visual Studio 2017>=15.0<=15.8
Microsoft Visual Studio 2019>=16.0<=16.10
Microsoft Visual Studio 2022>=17.6.0<17.6.22
Microsoft Visual Studio 2022>=17.8.0<17.8.17
Microsoft Visual Studio 2022>=17.10.0<17.10.10
Microsoft Visual Studio 2022>=17.12.0<17.12.4
alpine/dotnet8-runtime<8.0.12-r0
8.0.12-r0
alpine/dotnet8-runtime<8.0.12-r0
8.0.12-r0
alpine/dotnet8-runtime<8.0.12-r0
8.0.12-r0
alpine/dotnet8-runtime<8.0.12-r0
8.0.12-r0
alpine/dotnet8-runtime<8.0.12-r0
8.0.12-r0
alpine/dotnet9-runtime<9.0.1-r0
9.0.1-r0
alpine/dotnet9-runtime<9.0.1-r0
9.0.1-r0
alpine/dotnet9-runtime<9.0.1-r0
9.0.1-r0
alpine/dotnet9-runtime<9.0.1-r0
9.0.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-arm to a version that resolves this vulnerability.

    Fixed in 8.0.12
  2. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-arm64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  3. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-musl-arm to a version that resolves this vulnerability.

    Fixed in 8.0.12
  4. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-musl-arm64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  5. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-musl-x64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  6. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-x64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  7. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.osx-arm64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  8. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.osx-x64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  9. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-arm to a version that resolves this vulnerability.

    Fixed in 8.0.12
  10. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-arm64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  11. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-x64 to a version that resolves this vulnerability.

    Fixed in 8.0.12
  12. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-x86 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  13. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-x64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  14. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-arm64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  15. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.win-arm to a version that resolves this vulnerability.

    Fixed in 9.0.1
  16. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.osx-x64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  17. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.osx-arm64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  18. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-x64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  19. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-musl-x64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  20. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-musl-arm64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  21. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-musl-arm to a version that resolves this vulnerability.

    Fixed in 9.0.1
  22. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-arm64 to a version that resolves this vulnerability.

    Fixed in 9.0.1
  23. Upgrade

    Upgrade nuget/Microsoft.NetCore.App.Runtime.linux-arm to a version that resolves this vulnerability.

    Fixed in 9.0.1
  24. Upgrade

    Upgrade alpine/dotnet8-runtime to a version that resolves this vulnerability.

    Fixed in 8.0.12-r0
  25. Upgrade

    Upgrade alpine/dotnet9-runtime to a version that resolves this vulnerability.

    Fixed in 9.0.1-r0
  26. Upgrade

    Upgrade Microsoft.NetCore.App.Runtime.* (.NET 8 runtime packages) to a version that resolves this vulnerability.

    Fixed in 8.0.12
  27. Upgrade

    Upgrade Microsoft.NetCore.App.Runtime.* (.NET 9 runtime packages) to a version that resolves this vulnerability.

    Fixed in 9.0.1
  28. Upgrade

    Upgrade .NET 9.0 SDK to a version that resolves this vulnerability.

    Fixed in 9.0.100
  29. Operational

    Recompile and redeploy self-contained applications targeting impacted .NET versions.

  30. Operational

    Restart applications after installing the updated runtime or SDK.

Event History

Jan 14, 2025
CVE Published
via Microsoft·08:00 AM
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
CVE Published
via MITRE·06:04 PM
Data Sourced
via MITRE·06:04 PM
DescriptionSeverity
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software
Data Sourced
via Red Hat·07:08 PM
DescriptionSeverityAffected Software
Advisory Published
via GitHub·07:44 PM

Frequently Asked Questions

1

What is the severity of CVE-2025-21172?

CVE-2025-21172 is classified as a remote code execution vulnerability, which can allow attackers to execute arbitrary code on vulnerable systems.

2

How could CVE-2025-21172 impact my system?

Exploitation of CVE-2025-21172 may lead to unauthorized access, data breaches, or complete system compromise.

3

How do I fix CVE-2025-21172?

To remediate CVE-2025-21172, apply the latest security patches provided by Microsoft for the affected versions of Visual Studio and .NET.

4

Which software is affected by CVE-2025-21172?

CVE-2025-21172 affects various versions of Visual Studio 2017, 2019, 2022 and .NET 8.0, as well as .NET 9.0.

5

Is my version affected by CVE-2025-21172?

To determine if your version is affected by CVE-2025-21172, check if you are using Visual Studio 17.6, 17.8, 17.10, 17.12 or .NET versions 8.0 or 9.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203