CVE-2023-36796 Visual Studio Remote Code Execution Vulnerability

High 7.8 Published Updated

An integer overflow in .NET allows attackers to execute arbitrary code via Visual Studio, requiring immediate patching.

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-36796?

CVE-2023-36796 is a high-severity vulnerability in Microsoft .Net, published on 12 Sep 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

Visual Studio Remote Code Execution Vulnerability

Weakness: CWE-191

Which versions are affected by CVE-2023-36796?

14 open source packages ship an affected version, including Microsoft.NETCore.App.Runtime.win-arm64, dotnet and dotnet-sdk. It affects 5 products.

PackageAffectedFixed in
Microsoft.NETCore.App.Runtime.win-arm64 NuGetFrom 6.0.06.0.22
Microsoft.NETCore.App.Runtime.win-arm64 NuGetFrom 6.0.06.0.22
Microsoft.NETCore.App.Runtime.win-arm64 NuGetFrom 7.0.07.0.11
Microsoft.NETCore.App.Runtime.win-arm64 NuGetFrom 7.0.07.0.11
dotnet BitnamiFrom 6.0.06.0.1, 7.0.1
dotnet-sdk BitnamiFrom 6.0.06.0.1, 7.0.1
8 more packages
Microsoft.NETCore.App.Runtime.win-x64 NuGetFrom 6.0.06.0.22
Microsoft.NETCore.App.Runtime.win-x64 NuGetFrom 6.0.06.0.22
Microsoft.NETCore.App.Runtime.win-x64 NuGetFrom 7.0.07.0.11
Microsoft.NETCore.App.Runtime.win-x64 NuGetFrom 7.0.07.0.11
Microsoft.NETCore.App.Runtime.win-x86 NuGetFrom 6.0.06.0.22
Microsoft.NETCore.App.Runtime.win-x86 NuGetFrom 6.0.06.0.22
Microsoft.NETCore.App.Runtime.win-x86 NuGetFrom 7.0.07.0.11
Microsoft.NETCore.App.Runtime.win-x86 NuGetFrom 7.0.07.0.11

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-36796?

Upgrade Microsoft.NETCore.App.Runtime.win-arm64 to a fixed version for your release line: 6.0.22 or 7.0.11.

Is CVE-2023-36796 being exploited?

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

All Microsoft .Net vulnerabilities

Sources

Also known as BIT-dotnet-2023-36796, BIT-dotnet-sdk-2023-36796, CLEANSTART-2025-OJ41035, GHSA-h7jm-g87p-5935.

Is CVE-2023-36796 in your software?

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

Check your SBOMs for free