# .NET Elevation of Privilege Vulnerability

Advisory record · `GHSA-6qmx-42h2-j8h6`

- **Identifiers:** `GHSA-6qmx-42h2-j8h6` · `BIT-dotnet-2024-21409` · `BIT-dotnet-sdk-2024-21409` · `BIT-powershell-2024-21409` · `CVE-2024-21409`
- **State:** Confirmed
- **Severity:** CVSS 7.3 High
- **Critical:** No
- **Weakness (CWE):** [CWE-416](https://cwe.mitre.org/data/definitions/416.html)
- **Tags:** [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 17 Apr 2024
- **Updated:** 4 Sept 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Apr 2024, 18:21 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `Microsoft.WindowsDesktop.App.Runtime.win-arm64` (NuGet): affected `<6.0.29 || >=8.0.0, <8.0.4 || >=7.0.0, <7.0.18`; fixed in `6.0.29`, `8.0.4`, `7.0.18`
- `Microsoft.WindowsDesktop.App.Runtime.win-x64` (NuGet): affected `<6.0.29 || >=8.0.0, <8.0.4 || >=7.0.0, <7.0.18`; fixed in `6.0.29`, `8.0.4`, `7.0.18`
- `Microsoft.WindowsDesktop.App.Runtime.win-x86` (NuGet): affected `>=7.0.0, <7.0.18 || >=8.0.0, <8.0.4 || <6.0.29`; fixed in `7.0.18`, `8.0.4`, `6.0.29`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Microsoft.WindowsDesktop.App.Runtime packages for win-x64, win-x86 and win-arm64 are affected in .NET 6.0 up to 6.0.28, .NET 7.0 up to 7.0.17, and .NET 8.0 up to 8.0.3. A use-after-free flaw in WPF may allow elevation of privilege when a user views an untrusted document, and the source describes it as affecting only WPF-based applications on Windows. Upgrade to 6.0.29, 7.0.18 or 8.0.4 or later, then restart applications; self-contained applications must be recompiled and redeployed.

Written 9 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.3 High, CVSS 3.1: `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`, from CNA (microsoft)

- **CISA KEV:** Not listed.
- **EPSS:** 0.025, the 84th percentile, on 11 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:22 UTC: First seen by agentprime
- 31 Oct 2026, 15:22 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-6qmx-42h2-j8h6)

## Sources

- [GitHub Advisory Database: GHSA-6qmx-42h2-j8h6](https://github.com/advisories/GHSA-6qmx-42h2-j8h6)
- [OSV: GHSA-6qmx-42h2-j8h6](https://osv.dev/vulnerability/GHSA-6qmx-42h2-j8h6)
- <https://github.com/dotnet/wpf/security/advisories/GHSA-6qmx-42h2-j8h6>
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21409>
- <https://github.com/dotnet/wpf>
- <https://msrc.microsoft.com/update-guide/vulnerability/CVE-2024-21409>
- <https://security.netapp.com/advisory/ntap-20250117-0002>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-6qmx-42h2-j8h6>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-6qmx-42h2-j8h6/>. Everything for agents: <https://agentprime.io/llms.txt>.
