CVE-2023-33126 .NET and Visual Studio Remote Code Execution Vulnerability

High 7.3 Published Updated

Attackers can execute arbitrary code via a vulnerability in Microsoft .NET and Visual Studio, requiring immediate patching by developers.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-33126?

CVE-2023-33126 is a high-severity code injection vulnerability in Microsoft .Net, published on 13 Jun 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

Which versions are affected by CVE-2023-33126?

18 open source packages ship an affected version, including Microsoft.NetCore.App.Runtime.win-arm, dotnet and dotnet-sdk. It affects 2 products.

PackageAffectedFixed in
Microsoft.NetCore.App.Runtime.win-arm NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-arm NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-arm NuGetFrom 7.0.07.0.7
Microsoft.NetCore.App.Runtime.win-arm NuGetFrom 7.0.07.0.7
dotnet BitnamiFrom 6.0.06.0.18, 7.0.7
dotnet-sdk BitnamiFrom 6.0.06.0.18, 7.0.7
12 more packages
Microsoft.NetCore.App.Runtime.win-arm64 NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-arm64 NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-arm64 NuGetFrom 7.0.07.0.7
Microsoft.NetCore.App.Runtime.win-arm64 NuGetFrom 7.0.07.0.7
Microsoft.NetCore.App.Runtime.win-x64 NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-x64 NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-x64 NuGetFrom 7.0.07.0.7
Microsoft.NetCore.App.Runtime.win-x64 NuGetFrom 7.0.07.0.7
Microsoft.NetCore.App.Runtime.win-x86 NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-x86 NuGetFrom 6.0.06.0.18
Microsoft.NetCore.App.Runtime.win-x86 NuGetFrom 7.0.07.0.7
Microsoft.NetCore.App.Runtime.win-x86 NuGetFrom 7.0.07.0.7

Products include Microsoft .Net, Microsoft Visual Studio 2022.

How do I fix CVE-2023-33126?

Upgrade Microsoft.NetCore.App.Runtime.win-arm to a fixed version for your release line: 6.0.18 or 7.0.7.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2023-33126 being exploited?

There is no known exploitation of CVE-2023-33126 in the wild and no public exploit code.

All Microsoft .Net vulnerabilities

Sources

Also known as BIT-dotnet-2023-33126, BIT-dotnet-sdk-2023-33126, CLEANSTART-2025-DJ87385, GHSA-gh24-9qjj-mr67.

Is CVE-2023-33126 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free