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

High 7.8 Published Updated

A heap-based buffer overflow in .NET 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-24897?

CVE-2023-24897 is a high-severity memory corruption 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

Weakness: CWE-122

Which versions are affected by CVE-2023-24897?

18 open source packages ship an affected version, including Microsoft.NetCore.App.Runtime.win-arm, dotnet and dotnet-sdk. It affects 6 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.1, 7.0.1
dotnet-sdk BitnamiFrom 6.0.06.0.1, 7.0.1
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 .Net Framework, Microsoft Visual Studio, Microsoft Visual Studio 2017, Microsoft Visual Studio 2019, Microsoft Visual Studio 2022.

How do I fix CVE-2023-24897?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2023-24897 being exploited?

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

All Microsoft .Net vulnerabilities

Sources

Also known as BIT-dotnet-2023-24897, BIT-dotnet-sdk-2023-24897, CLEANSTART-2024-HC22129, GHSA-88q2-h5g3-p4pg.

Is CVE-2023-24897 in your software?

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

Check your SBOMs for free