CVE-2026-50650
vulnerability analysis and mitigation

Overview

CVE-2026-50650 is a code injection (CWE-94) elevation of privilege vulnerability in Windows Presentation Foundation (WPF) within Microsoft .NET Framework and .NET. It allows an unauthenticated local attacker to elevate privileges by exploiting improper control of code generation when parsing specially crafted XAML input. Disclosed on July 14, 2026, as part of Microsoft's July 2026 Patch Tuesday, it affects .NET Framework versions 3.5 through 4.8.1, .NET 8.0 (before 8.0.29), .NET 9.0 (before 9.0.18), .NET 10.0 (before 10.0.10), and associated Visual Studio 2022/2026 versions. It carries a CVSS v3.1 base score of 7.8 (High) (MSRC Advisory, GitHub Advisory).

Technical details

The vulnerability is rooted in improper neutralization of special elements in code generation (CWE-94) within the WPF XAML parser. When a WPF application processes a specially crafted XAML file, the parser fails to adequately control the generation of code derived from attacker-influenced input, enabling code injection. Exploitation requires local access and user interaction — typically, a user must open or process a malicious XAML document — but requires no prior privileges. The vulnerability is classified under CAPEC-242 (Code Injection) and CAPEC-35 (Leverage Executable Code in Non-Executable Files). No public proof-of-concept code has been identified at this time (GitHub Advisory, MSRC Advisory).

Impact

Successful exploitation grants an attacker high-impact compromise of confidentiality, integrity, and availability on the affected Windows system, effectively achieving full local privilege escalation. An attacker who exploits this vulnerability could execute arbitrary code at elevated privilege levels, potentially gaining administrative control over the affected host. The scope is limited to the local system (no scope change), but elevated privileges could facilitate further lateral movement or persistence within a compromised environment (GitHub Advisory, MSRC Advisory).

Exploitability

As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation. The NVD SSVC assessment confirms exploitation is currently "none" and the attack is not automatable due to the required user interaction. The EPSS score is approximately 0.285% (21st percentile), indicating a low near-term exploitation probability. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (GitHub Advisory, MSRC Advisory).

Exploitation steps

  1. Craft malicious XAML: An attacker creates a specially crafted XAML file designed to exploit the WPF XAML parser's improper code generation controls, embedding a code injection payload within XAML markup.
  2. Deliver the payload: The attacker delivers the malicious XAML file to the target system via phishing email, malicious download, shared network drive, or other social engineering means.
  3. Trigger user interaction: The attacker induces a local user to open the malicious XAML file using a WPF-based application (e.g., a .NET desktop application that renders XAML content).
  4. Exploit code injection: When the WPF XAML parser processes the crafted input, it fails to properly control code generation, allowing the attacker's injected code to execute.
  5. Achieve privilege escalation: The injected code runs at elevated privileges, granting the attacker administrative or SYSTEM-level access on the affected Windows host (GitHub Advisory, MSRC Advisory).

Indicators of compromise

  • File System: Presence of unexpected or suspicious .xaml files in user download directories, temp folders, or email attachment staging areas; newly created executables or scripts in user-writable directories following XAML file access.
  • Process: Unusual child processes spawned by WPF-based .NET applications (e.g., cmd.exe, powershell.exe, mshta.exe) with elevated privileges; processes running under unexpected user contexts after a user opened a XAML document.
  • Logs: Windows Event Log entries (Event ID 4688) showing process creation with elevated tokens originating from a .NET/WPF application process; application crash logs or .NET runtime exceptions related to XAML parsing errors.
  • Network: Unexpected outbound network connections from WPF application processes following XAML file parsing, potentially indicating post-exploitation activity such as C2 communication or data exfiltration.

Mitigation and workarounds

Microsoft released patches on July 14, 2026 (Patch Tuesday). Organizations should update to the following fixed versions: .NET 8.0.29 or later, .NET 9.0.18 or later, .NET 10.0.10 or later; .NET Framework 4.8 to version 4.8.4803.0 or later, 4.8.1 to 4.8.9339.0 or later, and 4.6.2/4.7/4.7.1/4.7.2 to 4.7.4143.0 or later; Visual Studio 2022 17.12 to 17.12.22+, 17.14 to 17.14.36+, and Visual Studio 2026 18.7 to 18.7.4+. Self-contained .NET applications targeting affected versions must be recompiled and redeployed. As an interim measure, apply the principle of least privilege to limit the impact of any successful local privilege escalation (MSRC Advisory, GitHub Advisory).

Community reactions

The vulnerability was covered as part of Microsoft's record-breaking July 2026 Patch Tuesday, which addressed 570 vulnerabilities including three zero-days, drawing significant attention from the security community (BleepingComputer). Microsoft published a dedicated servicing update blog post for .NET and .NET Framework (Microsoft DevBlogs). Rapid7 and SANS ISC also covered the July 2026 Patch Tuesday in their respective analyses (Rapid7 Blog, SANS ISC). Red Hat and other Linux ecosystem vendors issued advisories for their .NET runtime packages in response to this CVE.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Fixed

RHEL 8

:appstream:dotnet10.0-0:10.0.110-1.el8_10.src

Fixed

RHEL 9

:appstream:dotnet8.0-0:8.0.130-1.el9_4.src

Fixed

RHEL 10

dotnet8.0-0:8.0.130-1.el10_0.src

Fixed

Alpine

Fixed

edge

dotnet10-runtime: 10.0.10-r0, 8.0.29-r0, 9.0.18-r0

Fixed

v3.22

dotnet8-runtime: 8.0.29-r0, 9.0.18-r0

Fixed

v3.23

dotnet10-runtime: 10.0.10-r0, 8.0.29-r0, 9.0.18-r0

Fixed

SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management