Remote Code Execution in Windows Presentation Foundation
A high-severity remote code execution vulnerability (CVE-2026-50646) in .NET WPF allows arbitrary code execution via maliciously crafted XAML input.
CVE search metadata
CVE search record: CVE-2026-50646. Severity: high. CVSS: 7.8. EPSS: 0.97%. KEV: no. Product: Microsoft.WindowsDesktop.App.Runtime.win-arm64 (>= 10.0.0, <= 10.0.9), Microsoft.WindowsDesktop.App.Runtime.win-x64 (>= 10.0.0, <= 10.0.9), Microsoft.WindowsDesktop.App.Runtime.win-x86 (>= 10.0.0, <= 10.0.9), Microsoft.WindowsDesktop.App.Runtime.win-arm64 (>= 9.0.0, <= 9.0.17), Microsoft.WindowsDesktop.App.Runtime.win-x64 (>= 9.0.0, <= 9.0.17), Microsoft.WindowsDesktop.App.Runtime.win-x86 (>= 9.0.0, <= 9.0.17), Microsoft.WindowsDesktop.App.Runtime.win-arm64 (>= 8.0.0, <= 8.0.28), Microsoft.WindowsDesktop.App.Runtime.win-x64 (>= 8.0.0, <= 8.0.28), Microsoft.WindowsDesktop.App.Runtime.win-x86 (>= 8.0.0, <= 8.0.28). Brief: Remote Code Execution in Windows Presentation Foundation. Brief link: https://feed.craftedsignal.io/briefs/2026-09-dotnet-wpf-rce/
Microsoft has disclosed a remote code execution vulnerability (CVE-2026-50646) affecting the Windows Presentation Foundation (WPF) framework within .NET 8, .NET 9, and .NET 10. The vulnerability stems from an improper protection mechanism (CWE-693) during the parsing of XAML input. An attacker capable of delivering specially crafted XAML data to a vulnerable application can achieve arbitrary code execution in the context of the current user. This vulnerability impacts all architectures on Windows. Developers are required to update to the patched runtime versions and recompile any self-contained applications to remediate the risk.
Impact
Successful exploitation allows an unauthenticated attacker to execute code as the user running the application, potentially leading to full system compromise or sensitive data exfiltration. The vulnerability affects a wide range of .NET desktop runtime versions, necessitating comprehensive patching across enterprise .NET environments.
Recommendation
- Update all .NET environments to the latest runtime versions: .NET 8.0.29, .NET 9.0.18, or .NET 10.0.10.
- For applications deployed as self-contained bundles, recompile and redeploy all instances using the patched runtime.
- Use the
dotnet --infocommand across endpoints to inventory and identify instances of vulnerable .NET SDKs and runtimes. - Audit applications that accept user-provided XAML input for potential exposure to untrusted data sources.
Immediate actions
Deploy patched .NET runtimes (8.0.29, 9.0.18, 10.0.10) to all production hosts
Mitigations
Recompile and redeploy all self-contained applications with the patched runtime versions
CVE-2026-50646