CVE-2023-21808 .NET and Visual Studio Remote Code Execution Vulnerability
A use-after-free vulnerability in .NET and Visual Studio allows remote attackers to execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2023-21808?
CVE-2023-21808 is a high-severity use after free vulnerability in Microsoft .Net, published on 14 Feb 2023. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
.NET and Visual Studio Remote Code Execution Vulnerability
Weakness: CWE-416
Which versions are affected by CVE-2023-21808?
18 open source packages ship an affected version, including Microsoft.NetCore.App.Runtime.win-arm, dotnet and dotnet-sdk. It affects 5 products.
| Package | Affected | Fixed in |
|---|---|---|
Microsoft.NetCore.App.Runtime.win-arm NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-arm NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-arm NuGet | From 7.0.0 | 7.0.3 |
Microsoft.NetCore.App.Runtime.win-arm NuGet | From 7.0.0 | 7.0.3 |
dotnet Bitnami | From 6.0.0 | 6.0.1, 7.0.1 |
dotnet-sdk Bitnami | From 6.0.0 | 6.0.1, 7.0.1 |
12 more packages
Microsoft.NetCore.App.Runtime.win-arm64 NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-arm64 NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-arm64 NuGet | From 7.0.0 | 7.0.3 |
Microsoft.NetCore.App.Runtime.win-arm64 NuGet | From 7.0.0 | 7.0.3 |
Microsoft.NetCore.App.Runtime.win-x64 NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-x64 NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-x64 NuGet | From 7.0.0 | 7.0.3 |
Microsoft.NetCore.App.Runtime.win-x64 NuGet | From 7.0.0 | 7.0.3 |
Microsoft.NetCore.App.Runtime.win-x86 NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-x86 NuGet | From 6.0.0 | 6.0.14 |
Microsoft.NetCore.App.Runtime.win-x86 NuGet | From 7.0.0 | 7.0.3 |
Microsoft.NetCore.App.Runtime.win-x86 NuGet | From 7.0.0 | 7.0.3 |
Products include Microsoft .Net, Microsoft .Net Framework, Microsoft Visual Studio 2017, Microsoft Visual Studio 2019, Microsoft Visual Studio 2022.
How do I fix CVE-2023-21808?
Upgrade Microsoft.NetCore.App.Runtime.win-arm to a fixed version for your release line: 6.0.14 or 7.0.3.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-21808 being exploited?
There is no known exploitation of CVE-2023-21808 in the wild and no public exploit code.
Other vulnerabilities in Microsoft .Net
- CVE-2024-43498 .NET and Visual Studio Remote Code Execution Vulnerability
- CVE-2024-0057 NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability
- CVE-2026-96957 .NET Security Feature Bypass Vulnerability
- CVE-2026-69439 .NET and Visual Studio Elevation of Privilege Vulnerability
- CVE-2026-71328 .NET and Visual Studio Remote Code Execution Vulnerability
Sources
Also known as BIT-dotnet-2023-21808, BIT-dotnet-sdk-2023-21808, CLEANSTART-2024-SW12015, GHSA-824j-wqm8-89mj.