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

CVE-2022-24512 is fixed in 34 products on 2 platforms, first by PowerShell Preview 7.3.0.1, released December 16, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-24512
- Priority: High
- CVSS: 8.8 (Important)
- EPSS: 0.0161
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: yes
- Vendor exploitability assessment: Exploitation Less Likely
- Published: Mar 8, 2022
- Weakness: CWE-94: Improper Control of Generation of Code ('Code Injection')
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-24512

## Description

.NET and Visual Studio Remote Code Execution Vulnerability

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Windows apps | PowerShell | 7.2.2.0 | [PowerShell 7.2.2.0](https://patchblox.com/security/data/fix/windows-app/microsoft.powershell-7.2.2.0.md) | Mar 16, 2022 |
| Windows apps | PowerShell Preview | 7.3.0.1 | [PowerShell Preview 7.3.0.1](https://patchblox.com/security/data/fix/windows-app/microsoft.powershell.preview-7.3.0.1.md) | Dec 16, 2021 |
| Linux | aspnetcore-runtime-3.1 RHEL 8 | 0:3.1.23-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | aspnetcore-runtime-3.1 almalinux 8 | 3.1.23-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | aspnetcore-runtime-3.1 ol 8 | 0:3.1.23-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | aspnetcore-runtime-5.0 RHEL 8 | 0:5.0.15-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | aspnetcore-runtime-5.0 almalinux 8 | 5.0.15-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | aspnetcore-runtime-5.0 ol 8 | 0:5.0.15-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | aspnetcore-runtime-6.0 RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | aspnetcore-runtime-6.0 almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | aspnetcore-runtime-6.0 ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | aspnetcore-targeting-pack-3.1 RHEL 8 | 0:3.1.23-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | aspnetcore-targeting-pack-3.1 almalinux 8 | 3.1.23-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | aspnetcore-targeting-pack-3.1 ol 8 | 0:3.1.23-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | aspnetcore-targeting-pack-5.0 RHEL 8 | 0:5.0.15-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | aspnetcore-targeting-pack-5.0 almalinux 8 | 5.0.15-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | aspnetcore-targeting-pack-5.0 ol 8 | 0:5.0.15-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | aspnetcore-targeting-pack-6.0 RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | aspnetcore-targeting-pack-6.0 almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | aspnetcore-targeting-pack-6.0 ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet RHEL 8 | 0:6.0.103-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet almalinux 8 | 6.0.103-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet ol 8 | 0:6.0.103-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-apphost-pack-3.1 RHEL 8 | 0:3.1.23-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-apphost-pack-3.1 almalinux 8 | 3.1.23-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-apphost-pack-3.1 ol 8 | 0:3.1.23-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-apphost-pack-5.0 RHEL 8 | 0:5.0.15-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-apphost-pack-5.0 almalinux 8 | 5.0.15-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-apphost-pack-5.0 ol 8 | 0:5.0.15-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-apphost-pack-6.0 RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-apphost-pack-6.0 almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-apphost-pack-6.0 ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-host RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-host almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-host ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-hostfxr-3.1 RHEL 8 | 0:3.1.23-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-hostfxr-3.1 almalinux 8 | 3.1.23-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-hostfxr-3.1 ol 8 | 0:3.1.23-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-hostfxr-5.0 RHEL 8 | 0:5.0.15-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-hostfxr-5.0 almalinux 8 | 5.0.15-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-hostfxr-5.0 ol 8 | 0:5.0.15-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-hostfxr-6.0 RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-hostfxr-6.0 almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-hostfxr-6.0 ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-runtime-3.1 RHEL 8 | 0:3.1.23-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-runtime-3.1 almalinux 8 | 3.1.23-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-runtime-3.1 ol 8 | 0:3.1.23-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-runtime-5.0 RHEL 8 | 0:5.0.15-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-runtime-5.0 almalinux 8 | 5.0.15-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-runtime-5.0 ol 8 | 0:5.0.15-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-runtime-6.0 RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-runtime-6.0 almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-runtime-6.0 ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-sdk-3.1 RHEL 8 | 0:3.1.417-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-3.1 almalinux 8 | 3.1.417-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-3.1 ol 8 | 0:3.1.417-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-sdk-3.1-source-built-artifacts RHEL 8 | 0:3.1.417-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-3.1-source-built-artifacts almalinux 8 | 3.1.417-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-3.1-source-built-artifacts ol 8 | 0:3.1.417-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-sdk-5.0 RHEL 8 | 0:5.0.212-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-5.0 almalinux 8 | 5.0.212-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-5.0 ol 8 | 0:5.0.212-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-sdk-5.0-source-built-artifacts RHEL 8 | 0:5.0.212-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-5.0-source-built-artifacts almalinux 8 | 5.0.212-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-5.0-source-built-artifacts ol 8 | 0:5.0.212-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-sdk-6.0 RHEL 8 | 0:6.0.103-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-6.0 almalinux 8 | 6.0.103-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-sdk-6.0 ol 8 | 0:6.0.103-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-targeting-pack-3.1 RHEL 8 | 0:3.1.23-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-targeting-pack-3.1 almalinux 8 | 3.1.23-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-targeting-pack-3.1 ol 8 | 0:3.1.23-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-targeting-pack-5.0 RHEL 8 | 0:5.0.15-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-targeting-pack-5.0 almalinux 8 | 5.0.15-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-targeting-pack-5.0 ol 8 | 0:5.0.15-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-targeting-pack-6.0 RHEL 8 | 0:6.0.3-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-targeting-pack-6.0 almalinux 8 | 6.0.3-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-targeting-pack-6.0 ol 8 | 0:6.0.3-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet-templates-3.1 RHEL 8 | 0:3.1.417-1.el8_5 | [RHSA-2022:0827](https://patchblox.com/security/data/fix/linux/rhsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-templates-3.1 almalinux 8 | 3.1.417-1.el8_5 | [ALSA-2022:0827](https://patchblox.com/security/data/fix/linux/alsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet-templates-3.1 ol 8 | 0:3.1.417-1.0.1.el8_5 | [ELSA-2022-0827](https://patchblox.com/security/data/fix/linux/elsa-2022-0827.md) | Mar 11, 2022 |
| Linux | dotnet-templates-5.0 RHEL 8 | 0:5.0.212-1.el8_5 | [RHSA-2022:0830](https://patchblox.com/security/data/fix/linux/rhsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-templates-5.0 almalinux 8 | 5.0.212-1.el8_5 | [ALSA-2022:0830](https://patchblox.com/security/data/fix/linux/alsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet-templates-5.0 ol 8 | 0:5.0.212-1.0.1.el8_5 | [ELSA-2022-0830](https://patchblox.com/security/data/fix/linux/elsa-2022-0830.md) | Mar 11, 2022 |
| Linux | dotnet-templates-6.0 RHEL 8 | 0:6.0.103-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-templates-6.0 almalinux 8 | 6.0.103-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | dotnet-templates-6.0 ol 8 | 0:6.0.103-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |
| Linux | dotnet3.1 rocky 8 | 0:3.1.417-1.el8_5 | [RLSA-2022:0827](https://patchblox.com/security/data/fix/linux/rlsa-2022-0827.md) | Mar 10, 2022 |
| Linux | dotnet5.0 rocky 8 | 0:5.0.212-1.el8_5 | [RLSA-2022:0830](https://patchblox.com/security/data/fix/linux/rlsa-2022-0830.md) | Mar 10, 2022 |
| Linux | dotnet6.0 rocky 8 | 0:6.0.103-4.el8_5 | [RLSA-2022:0826](https://patchblox.com/security/data/fix/linux/rlsa-2022-0826.md) | Mar 10, 2022 |
| Linux | netstandard-targeting-pack-2.1 RHEL 8 | 0:6.0.103-4.el8_5 | [RHSA-2022:0826](https://patchblox.com/security/data/fix/linux/rhsa-2022-0826.md) | Mar 10, 2022 |
| Linux | netstandard-targeting-pack-2.1 almalinux 8 | 6.0.103-4.el8_5 | [ALSA-2022:0826](https://patchblox.com/security/data/fix/linux/alsa-2022-0826.md) | Mar 10, 2022 |
| Linux | netstandard-targeting-pack-2.1 ol 8 | 0:6.0.103-4.0.1.el8_5 | [ELSA-2022-0826](https://patchblox.com/security/data/fix/linux/elsa-2022-0826.md) | Mar 11, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
