CVE-2023-24895 .NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

High 7.8 Published Updated

Attackers can execute arbitrary code via a vulnerability in the .NET Framework and Visual Studio components.

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

CVE-2023-24895 is a high-severity code injection vulnerability in Microsoft .Net, published on 14 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, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Which versions are affected by CVE-2023-24895?

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

PackageAffectedFixed in
Microsoft.WindowsDesktop.App.Runtime.win-arm64 NuGetFrom 6.0.06.0.18
Microsoft.WindowsDesktop.App.Runtime.win-arm64 NuGetFrom 6.0.06.0.18
Microsoft.WindowsDesktop.App.Runtime.win-arm64 NuGetFrom 7.0.07.0.7
Microsoft.WindowsDesktop.App.Runtime.win-arm64 NuGetFrom 7.0.07.0.7
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.WindowsDesktop.App.Runtime.win-x64 NuGetFrom 6.0.06.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x64 NuGetFrom 6.0.06.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x64 NuGetFrom 7.0.07.0.7
Microsoft.WindowsDesktop.App.Runtime.win-x64 NuGetFrom 7.0.07.0.7
Microsoft.WindowsDesktop.App.Runtime.win-x86 NuGetFrom 6.0.06.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x86 NuGetFrom 6.0.06.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x86 NuGetFrom 7.0.07.0.7
Microsoft.WindowsDesktop.App.Runtime.win-x86 NuGetFrom 7.0.07.0.7

Products include Microsoft .Net, Microsoft .Net Framework, Microsoft Visual Studio 2022.

How do I fix CVE-2023-24895?

Upgrade Microsoft.WindowsDesktop.App.Runtime.win-arm64 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-24895 being exploited?

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

All Microsoft .Net vulnerabilities

Sources

Also known as BIT-dotnet-2023-24895, BIT-dotnet-sdk-2023-24895, CLEANSTART-2024-SK69505, GHSA-jh2h-qcrw-ghg7.

Is CVE-2023-24895 in your software?

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

Check your SBOMs for free