CVE-2024-21409
.NET, .NET Framework, and Visual Studio Remote Code Execution Vulnerability
.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
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 High
CVSS: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 High
CVSS: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 --infocommand. 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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 --infocommand. 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 High
CVSS: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
- microsoft .net
- microsoft .net framework
- microsoft .net 6.0
- microsoft .net 7.0
- microsoft .net 8.0
- microsoft .net framework 3.5 and 4.7.2
- microsoft .net framework 3.5 and 4.8
- microsoft .net framework 3.5 and 4.8.1
- microsoft .net framework 4.6.2
- microsoft .net framework 4.6.2/4.7/4.7.1/4.7.2
- microsoft .net framework 4.8
- microsoft visual studio 2022 version 17.4
Affected packages
| Package | Affected | Fixed |
|---|---|---|
Microsoft.WindowsDesktop.App.Runtime.win-arm64NuGet |
through 6.0.28 | 6.0.29 |
Microsoft.WindowsDesktop.App.Runtime.win-arm64NuGet |
8.0.0 to 8.0.3 | 8.0.4 |
Microsoft.WindowsDesktop.App.Runtime.win-arm64NuGet |
7.0.0 to 7.0.17 | 7.0.18 |
Microsoft.WindowsDesktop.App.Runtime.win-x64NuGet |
through 6.0.28 | 6.0.29 |
Microsoft.WindowsDesktop.App.Runtime.win-x64NuGet |
8.0.0 to 8.0.3 | 8.0.4 |
Microsoft.WindowsDesktop.App.Runtime.win-x64NuGet |
7.0.0 to 7.0.17 | 7.0.18 |
Microsoft.WindowsDesktop.App.Runtime.win-x86NuGet |
7.0.0 to 7.0.17 | 7.0.18 |
Microsoft.WindowsDesktop.App.Runtime.win-x86NuGet |
8.0.0 to 8.0.3 | 8.0.4 |
Microsoft.WindowsDesktop.App.Runtime.win-x86NuGet |
through 6.0.28 | 6.0.29 |
dotnet6-buildAlpine:v3.19 |
before 6.0.129-r0 | 6.0.129-r0 |
Show 24 moreShow less
| Package | Affected | Fixed |
|---|---|---|
dotnet6-buildAlpine:v3.20 |
before 6.0.129-r0 | 6.0.129-r0 |
dotnet6-runtimeAlpine:v3.19 |
before 6.0.29-r0 | 6.0.29-r0 |
dotnet6-runtimeAlpine:v3.20 |
before 6.0.29-r0 | 6.0.29-r0 |
dotnet7-buildAlpine:v3.19 |
before 7.0.118-r0 | 7.0.118-r0 |
dotnet7-runtimeAlpine:v3.19 |
before 7.0.18-r0 | 7.0.18-r0 |
dotnet8-runtimeAlpine:v3.20 |
before 8.0.4-r0 | 8.0.4-r0 |
dotnet8-runtimeAlpine:v3.21 |
before 8.0.4-r0 | 8.0.4-r0 |
dotnet8-runtimeAlpine:v3.22 |
before 8.0.4-r0 | 8.0.4-r0 |
dotnet8-runtimeAlpine:v3.23 |
before 8.0.4-r0 | 8.0.4-r0 |
dotnet8-runtimeAlpine:v3.24 |
before 8.0.4-r0 | 8.0.4-r0 |
dotnet6-buildAlpaquita:stream |
6.0.125-r0 up to 6.0.129-r0 | 6.0.129-r0 |
dotnet6-runtimeAlpaquita:stream |
6.0.25-r0 up to 6.0.29-r0 | 6.0.29-r0 |
dotnetBitnami |
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-sdkBitnami |
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 |
powershellBitnami |
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-arm64NuGet |
before 6.0.29, plus listed versions 5.0.05.0.15.0.105.0.115.0.12 Show 41 moreShow less5.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-arm64NuGet |
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-arm64NuGet |
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 less7.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-x64NuGet |
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 less3.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-x64NuGet |
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-x64NuGet |
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 less7.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-x86NuGet |
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 less7.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-x86NuGet |
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-x86NuGet |
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 less3.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.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | vkairy/cve-2024-21409-repro | 2025-02-12 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| first indexed | CVE 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
msrc.microsoft.com/update-guide/vulnerability/CVE-2024-21409
security.netapp.com/advisory/ntap-20250117-0002
github.com/dotnet/wpf/security/advisories/GHSA-6qmx-42h2-j8h6
nvd.nist.gov/vuln/detail/CVE-2024-21409
github.com/advisories/GHSA-6qmx-42h2-j8h6
security.alpinelinux.org/vuln/CVE-2024-21409
docs.bell-sw.com/security/cves/CVE-2024-21409
docs.bell-sw.com/security/advisories/BELL-SA-2024-28
github.com/dotnet/wpf
Left out here: 74 versions and the rest of 2 source descriptions. The JSON record has them.