CVE-2022-24512 .NET and Visual Studio Remote Code Execution Vulnerability

Medium 6.3 Published Updated

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

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-24512?

CVE-2022-24512 is a medium-severity code injection vulnerability in Fedoraproject Fedora, published on 9 Mar 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

.NET and Visual Studio Remote Code Execution Vulnerability

Weakness: CWE-94

Which versions are affected by CVE-2022-24512?

40 open source packages ship an affected version, including Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm, dotnet and dotnet-sdk. It affects 6 products.

PackageAffectedFixed in
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm NuGetFrom 6.0.06.0.3
dotnet BitnamiFrom 5.0.05.0.1, 6.0.1
dotnet-sdk BitnamiFrom 5.0.05.0.1, 6.0.1
powershell BitnamiFrom 7.0.07.0.9, 7.1.6, 7.2.2
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64 NuGetFrom 6.0.06.0.3
34 more packages
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-x86 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.browser-wasm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.browser-wasm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x86 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.android-x86 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.browser-wasm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.ios-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x86 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.iossimulator-x86 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.maccatalyst-x64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvos-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvos-arm64 NuGetFrom 6.0.06.0.3
Microsoft.NETCore.App.Runtime.AOT.osx-x64.Cross.tvossimulator-arm64 NuGetFrom 6.0.06.0.3

Products include Fedoraproject Fedora, Microsoft .Net, Microsoft .Net Core, Microsoft Powershell, Microsoft Visual Studio 2019, Microsoft Visual Studio 2022.

How do I fix CVE-2022-24512?

Upgrade Microsoft.NETCore.App.Runtime.AOT.linux-x64.Cross.android-arm to 6.0.3 or later.

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

Is CVE-2022-24512 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as BIT-dotnet-2022-24512, BIT-dotnet-sdk-2022-24512, BIT-powershell-2022-24512, GHSA-c6w8-7mp3-34j9.

Is CVE-2022-24512 in your software?

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

Check your SBOMs for free