Every CVE Search/ Get API key

CVE-2024-21409

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

7.3 HighPublic exploitFix available

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
Low
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

2.51%Up 2.5 points since Apr 10, 2024
90%50%10%1%

What each source reports

CVE List Score used 7.3

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
CVE-2024-21409
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
Weakness
CWE-416
Updated
2026-11-02
EUVDEUVD-2024-1130 7.3

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
EUVD-2024-1130
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
Updated
2026-11-02
GitHub AdvisoriesGHSA-6qmx-42h2-j8h6 7.3

.NET Elevation of Privilege Vulnerability

Microsoft Security Advisory CVE-2024-21409 | .NET Elevation of Privilege Vulnerability

<a name="executive-summary"></a>Executive summary

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 6.0, .NET 7.0 ,and .NET 8.0. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

A use-after-free vulnerability exists in WPF which may result in Elevation of Privilege when viewing untrusted documents. This is a Windows only vulnerability.

Announcement

Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/303

<a name="mitigation-factors"></a>Mitigation factors

This vulnerability affects only WPF-based applications.

<a name="affected-software"></a>Affected software

  • Any .NET 6.0 application running on .NET 6.0.28 or earlier.
  • Any .NET 7.0 application running on .NET 7.0.17 or earlier.
  • Any .NET 8.0 application running on .NET 8.0.3 or earlier.

<a name="affected-packages"></a>Affected Packages

The vulnerability affects any Microsoft .NET Core project if it uses any of affected packages versions listed below

<a name=".NET 7"></a>.NET 6.0

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- Microsoft.WindowsDesktop.App.Runtime.win-arm64 | < = 6.0.28 | 6.0.29 Microsoft.WindowsDesktop.App.Runtime.win-x64 | < = 6.0.28 | 6.0.29 Microsoft.WindowsDesktop.App.Runtime.win-x86 | < = 6.0.28 | 6.0.29

<a name=".NET 7"></a>.NET 7.0

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- Microsoft.WindowsDesktop.App.Runtime.win-arm64 | <= 7.0.17 | 7.0.18 Microsoft.WindowsDesktop.App.Runtime.win-x64 | <= 7.0.17 | 7.0.18 Microsoft.WindowsDesktop.App.Runtime.win-x86 | <= 7.0.17 | 7.0.18

<a name=".NET 7"></a>.NET 8.0

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- Microsoft.WindowsDesktop.App.Runtime.win-arm64 | <= 8.0.3 | 8.0.4 Microsoft.WindowsDesktop.App.Runtime.win-x64 | <= 8.0.3 | 8.0.4 Microsoft.WindowsDesktop.App.Runtime.win-x86 | <= 8.0.3 | 8.0.4

Advisory FAQ

<a name="how-affected"></a>How do I know if I am affected?

If you have a runtime or SDK with a version listed, or an affected package listed in affected software or affected packages, you're exposed to the vulnerability.

<a name="how-fix"></a>How do I fix the issue?

  • To fix the issue please install the latest version of .NET 8.0 or .NET 7.0 or .NET 6.0. If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs.
  • If you have .NET 6.0 or greater installed, you can list the versions you have installed by running the dotnet --info command. You will see output like the following;
.NET Core SDK (reflecting any global.json):


 Version:   8.0.204
 Commit:    8473146e7d

Runtime Environment:

 OS Name:    …
Record
GHSA-6qmx-42h2-j8h6
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-416
Updated
2026-11-02
NVD 7.3

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
CVE-2024-21409
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-416
Updated
2026-11-02
OSVALPINE-CVE-2024-21409 7.3

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
ALPINE-CVE-2024-21409
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSVBELL-CVE-2024-21409 7.3
Record
BELL-CVE-2024-21409
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 5 moreShow less
OSV 7.3

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
CVE-2024-21409
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-6qmx-42h2-j8h6 7.3

.NET Elevation of Privilege Vulnerability

Microsoft Security Advisory CVE-2024-21409 | .NET Elevation of Privilege Vulnerability

<a name="executive-summary"></a>Executive summary

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 6.0, .NET 7.0 ,and .NET 8.0. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

A use-after-free vulnerability exists in WPF which may result in Elevation of Privilege when viewing untrusted documents. This is a Windows only vulnerability.

Announcement

Announcement for this issue can be found at https://github.com/dotnet/announcements/issues/303

<a name="mitigation-factors"></a>Mitigation factors

This vulnerability affects only WPF-based applications.

<a name="affected-software"></a>Affected software

  • Any .NET 6.0 application running on .NET 6.0.28 or earlier.
  • Any .NET 7.0 application running on .NET 7.0.17 or earlier.
  • Any .NET 8.0 application running on .NET 8.0.3 or earlier.

<a name="affected-packages"></a>Affected Packages

The vulnerability affects any Microsoft .NET Core project if it uses any of affected packages versions listed below

<a name=".NET 7"></a>.NET 6.0

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- Microsoft.WindowsDesktop.App.Runtime.win-arm64 | < = 6.0.28 | 6.0.29 Microsoft.WindowsDesktop.App.Runtime.win-x64 | < = 6.0.28 | 6.0.29 Microsoft.WindowsDesktop.App.Runtime.win-x86 | < = 6.0.28 | 6.0.29

<a name=".NET 7"></a>.NET 7.0

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- Microsoft.WindowsDesktop.App.Runtime.win-arm64 | <= 7.0.17 | 7.0.18 Microsoft.WindowsDesktop.App.Runtime.win-x64 | <= 7.0.17 | 7.0.18 Microsoft.WindowsDesktop.App.Runtime.win-x86 | <= 7.0.17 | 7.0.18

<a name=".NET 7"></a>.NET 8.0

Package name | Affected version | Patched version ------------ | ---------------- | ------------------------- Microsoft.WindowsDesktop.App.Runtime.win-arm64 | <= 8.0.3 | 8.0.4 Microsoft.WindowsDesktop.App.Runtime.win-x64 | <= 8.0.3 | 8.0.4 Microsoft.WindowsDesktop.App.Runtime.win-x86 | <= 8.0.3 | 8.0.4

Advisory FAQ

<a name="how-affected"></a>How do I know if I am affected?

If you have a runtime or SDK with a version listed, or an affected package listed in affected software or affected packages, you're exposed to the vulnerability.

<a name="how-fix"></a>How do I fix the issue?

  • To fix the issue please install the latest version of .NET 8.0 or .NET 7.0 or .NET 6.0. If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs.
  • If you have .NET 6.0 or greater installed, you can list the versions you have installed by running the dotnet --info command. You will see output like the following;
.NET Core SDK (reflecting any global.json):


 Version:   8.0.204
 Commit:    8473146e7d

Runtime Environment:

 OS Name:    …
Record
GHSA-6qmx-42h2-j8h6
CVSS 3.1
7.3 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-416
Updated
2026-11-02
OSVBIT-dotnet-2024-21409 No score

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
BIT-dotnet-2024-21409
Updated
2026-11-02
OSVBIT-dotnet-sdk-2024-21409 No score

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
BIT-dotnet-sdk-2024-21409
Updated
2026-11-02
OSVBIT-powershell-2024-21409 No score

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability

Record
BIT-powershell-2024-21409
Updated
2026-11-02

Affected products

Show 8 moreShow less

Affected packages

Affected packages
PackageAffectedFixed
Microsoft.WindowsDesktop.App.Runtime.win-arm64
NuGet
through 6.0.28
6.0.29
Microsoft.WindowsDesktop.App.Runtime.win-arm64
NuGet
8.0.0 to 8.0.3
8.0.4
Microsoft.WindowsDesktop.App.Runtime.win-arm64
NuGet
7.0.0 to 7.0.17
7.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
through 6.0.28
6.0.29
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
8.0.0 to 8.0.3
8.0.4
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
7.0.0 to 7.0.17
7.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
7.0.0 to 7.0.17
7.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
8.0.0 to 8.0.3
8.0.4
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
through 6.0.28
6.0.29
dotnet6-build
Alpine:v3.19
before 6.0.129-r0
6.0.129-r0
Show 24 moreShow less
Affected packages
PackageAffectedFixed
dotnet6-build
Alpine:v3.20
before 6.0.129-r0
6.0.129-r0
dotnet6-runtime
Alpine:v3.19
before 6.0.29-r0
6.0.29-r0
dotnet6-runtime
Alpine:v3.20
before 6.0.29-r0
6.0.29-r0
dotnet7-build
Alpine:v3.19
before 7.0.118-r0
7.0.118-r0
dotnet7-runtime
Alpine:v3.19
before 7.0.18-r0
7.0.18-r0
dotnet8-runtime
Alpine:v3.20
before 8.0.4-r0
8.0.4-r0
dotnet8-runtime
Alpine:v3.21
before 8.0.4-r0
8.0.4-r0
dotnet8-runtime
Alpine:v3.22
before 8.0.4-r0
8.0.4-r0
dotnet8-runtime
Alpine:v3.23
before 8.0.4-r0
8.0.4-r0
dotnet8-runtime
Alpine:v3.24
before 8.0.4-r0
8.0.4-r0
dotnet6-build
Alpaquita:stream
6.0.125-r0 up to 6.0.129-r0
6.0.129-r0
dotnet6-runtime
Alpaquita:stream
6.0.25-r0 up to 6.0.29-r0
6.0.29-r0
dotnet
Bitnami
6.0.0 up to 6.0.29, 7.0.0 up to 7.0.18, 8.0.0 up to 8.0.4
6.0.297.0.188.0.4
dotnet-sdk
Bitnami
6.0.0 up to 6.0.29, 7.0.0 up to 7.0.18, 8.0.0 up to 8.0.4
6.0.297.0.188.0.4
powershell
Bitnami
7.2.0 up to 7.2.19, 7.3.0 up to 7.3.12, 7.4.0 up to 7.4.2
7.2.197.3.127.4.2
Microsoft.WindowsDesktop.App.Runtime.win-arm64
NuGet
before 6.0.29, plus listed versions
5.0.05.0.15.0.105.0.115.0.12
Show 41 moreShow less
5.0.135.0.145.0.155.0.165.0.175.0.25.0.35.0.45.0.55.0.65.0.75.0.85.0.96.0.06.0.16.0.106.0.116.0.126.0.136.0.146.0.156.0.166.0.186.0.196.0.26.0.206.0.216.0.226.0.236.0.246.0.256.0.266.0.276.0.286.0.36.0.46.0.56.0.66.0.76.0.86.0.9
6.0.29
Microsoft.WindowsDesktop.App.Runtime.win-arm64
NuGet
8.0.0 up to 8.0.4, plus listed versions
8.0.18.0.28.0.3
8.0.4
Microsoft.WindowsDesktop.App.Runtime.win-arm64
NuGet
7.0.0 up to 7.0.18, plus listed versions
7.0.17.0.107.0.117.0.127.0.13
Show 11 moreShow less
7.0.147.0.157.0.167.0.177.0.27.0.37.0.47.0.57.0.77.0.87.0.9
7.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
before 6.0.29, plus listed versions
3.0.03.0.0-preview7-27912-143.0.0-preview8-28405-073.0.0-preview9-19423-093.0.0-rc1-19456-20
Show 45 moreShow less
3.0.13.0.23.0.33.1.03.1.13.1.103.1.113.1.123.1.133.1.143.1.153.1.163.1.173.1.183.1.193.1.23.1.203.1.213.1.223.1.233.1.243.1.253.1.263.1.273.1.283.1.293.1.33.1.303.1.313.1.323.1.43.1.53.1.63.1.73.1.83.1.95.0.05.0.15.0.105.0.115.0.125.0.135.0.145.0.155.0.16
6.0.29
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
8.0.0 up to 8.0.4, plus listed versions
8.0.18.0.28.0.3
8.0.4
Microsoft.WindowsDesktop.App.Runtime.win-x64
NuGet
7.0.0 up to 7.0.18, plus listed versions
7.0.17.0.107.0.117.0.127.0.13
Show 11 moreShow less
7.0.147.0.157.0.167.0.177.0.27.0.37.0.47.0.57.0.77.0.87.0.9
7.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
7.0.0 up to 7.0.18, plus listed versions
7.0.17.0.107.0.117.0.127.0.13
Show 11 moreShow less
7.0.147.0.157.0.167.0.177.0.27.0.37.0.47.0.57.0.77.0.87.0.9
7.0.18
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
8.0.0 up to 8.0.4, plus listed versions
8.0.18.0.28.0.3
8.0.4
Microsoft.WindowsDesktop.App.Runtime.win-x86
NuGet
before 6.0.29, plus listed versions
3.0.03.0.0-preview7-27912-143.0.0-preview8-28405-073.0.0-preview9-19423-093.0.0-rc1-19456-20
Show 45 moreShow less
3.0.13.0.23.0.33.1.03.1.13.1.103.1.113.1.123.1.133.1.143.1.153.1.163.1.173.1.183.1.193.1.23.1.203.1.213.1.223.1.233.1.243.1.253.1.263.1.273.1.283.1.293.1.33.1.303.1.313.1.323.1.43.1.53.1.63.1.73.1.83.1.95.0.05.0.15.0.105.0.115.0.125.0.135.0.145.0.155.0.16
6.0.29

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
PoC in GitHubvkairy/cve-2024-21409-repro2025-02-12

History

History
RecordedChangedSources
affected, aliases, referencesOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2024-21409 is a high vulnerability (CVSS 7.3) in Microsoft .net, published April 9, 2024. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 2.51%, the 84th percentile. Fixed in Microsoft.WindowsDesktop.App.Runtime.win-arm64 6.0.29.

References

This page doesn't list everything

Left out here: 74 versions and the rest of 2 source descriptions. The JSON record has them.

MoveEnter Open