CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-87697

CVE-2026-87697: Untrusted Deserialization in .NET PresentationCore Clipboard Handling

Alon Barad
Alon Barad
Software Engineer

Oct 14, 2026·5 min read·36 visits

Executive Summary (TL;DR)

Implicit type auto-conversion in WPF PresentationCore clipboard routines allowed untrusted data streams to be automatically deserialized, enabling arbitrary code execution upon accessing clipboard data.

A remote code execution vulnerability exists in Microsoft .NET due to untrusted data deserialization within the PresentationCore component. The flaw stems from implicit auto-conversion flags during clipboard data retrieval operations.

Vulnerability Overview

A remote code execution vulnerability designated as CVE-2026-87697 affects Microsoft .NET runtimes and Windows Presentation Foundation (WPF) applications. The vulnerability carries a CVSS v3.1 base score of 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) and is categorized under CWE-502 (Deserialization of Untrusted Data).

The impacted subsystem resides within System.Windows.Clipboard in the PresentationCore library. When a WPF application reads data from the system clipboard or processes typed data objects, implicit auto-conversion mechanisms force the framework to parse and coerce data formats. If an external or malicious process places a specially crafted serialized object stream onto the system clipboard, querying the clipboard triggers automatic deserialization within the target process context.

Because the deserialization occurs without explicit type checks or restrictions on format coercions, attackers capable of placing payloads onto the system clipboard or invoking automated data handling can achieve remote code execution in the context of the user running the application.

Root Cause Analysis

The root cause of CVE-2026-87697 lies in the default handling of the autoConvert parameter within data retrieval helper routines in PresentationCore/System/Windows/clipboard.cs. Specifically, the methods GetTypedDataIfAvailable and TryGetData explicitly invoked type retrieval methods using autoConvert: true when querying underlying ITypedDataObject or IDataObject implementations.

When autoConvert is set to true, the framework attempts to dynamically convert raw clipboard object streams into target application types. During this process, the .NET object deserialization pipeline processes raw binary streams or formatted object structures present on the system clipboard. Because deserialization occurs prior to type validation, standard object formatting channels invoke object constructor sequences and property setters on untrusted types.

Additionally, secondary root causes involve Windows Presentation Foundation (WPF) XPS document controls, where synthetic hyperlinks exposed through UI Automation (UIA) provider interfaces allowed automated tools or programmatic UI consumers to trigger navigation without applying strict origin or format sanitization checks.

Code Analysis

The fix was applied in the dotnet/wpf repository under commit 0987b406ba6087cbe14fdff1c9b67dd0c83f9076. Analysis of the patch reveals that developers modified GetTypedDataIfAvailable to evaluate whether the requested format safely allows auto-conversion before passing the flag to the data object interface. Furthermore, TryGetData<T> was updated to explicitly pass autoConvert: false.

// File: src/Microsoft.DotNet.Wpf/src/PresentationCore/System/Windows/clipboard.cs
@@ -83,14 +83,16 @@ public static bool ContainsText(TextDataFormat format) => !DataFormats.IsValidTe
     private static T? GetTypedDataIfAvailable<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(string format)
     {
         IDataObject? data = GetDataObject();
+        // Check if format permits auto-conversion explicitly
+        bool autoConvert = IsDataFormatAutoConvert(format);
 
         if (data is ITypedDataObject typed)
         {
-            return typed.TryGetData(format, autoConvert: true, out T? value) ? value : default;
+            return typed.TryGetData(format, autoConvert, out T? value) ? value : default;
         }
 
         if (data is IDataObject dataObject)
         {
-            return dataObject.GetData(format, autoConvert: true) is T value ? value : default;
+            return dataObject.GetData(format, autoConvert) is T value ? value : default;
         }
 
         return default;
@@ -485,7 +487,7 @@ public static bool TryGetData<T>(
             return false;
         }
 
-        // Enforce autoConvert: false for direct typed data extraction
-        return dataObject.TryGetData(format, autoConvert: false, out data);
     }

The implementation flow transitions from unverified data object expansion to strict conversion boundary enforcement:

Unit tests added alongside the patch confirm that retrieving data in convertible formats without explicit format matching returns null rather than executing payload coercion routines.

Exploitation Methodology

Exploitation requires user interaction or automated clipboard polling within a vulnerable WPF host application. An attacker constructs a payload containing gadget chains compatible with standard .NET binary or object deserializers and writes this object to the system clipboard buffer.

When a user performs a paste action, or when the application programmatically calls Clipboard.GetText(), Clipboard.GetData(), or Clipboard.TryGetData(), PresentationCore reads the data object. Under the unpatched framework, the autoConvert: true flag instructs ITypedDataObject.TryGetData to deserialize the stream into the expected target type.

During deserialization, standard gadget chain mechanisms invoke arbitrary commands or arbitrary memory manipulation steps under the executing context of the logged-in user. Prerequisites include local or network delivery of payload data into the shared system clipboard or interaction with a WPF interface consuming clipboard contents.

Impact Assessment

Successful exploitation leads to full Unauthenticated Remote Code Execution (RCE) in the context of the user running the affected WPF application. If the application operates with administrative privileges, the attacker gains full system control, enabling persistence, data exfiltration, and lateral movement.

Confidentiality, Integrity, and Availability impacts are all rated High (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). The vulnerability affects enterprise applications built on WPF running on Microsoft .NET 8.0, 9.0, 10.0, 11.0, and developer workstation instances hosted within Visual Studio 2022 and 2026.

No active public exploitation chains or CISA KEV entries are currently logged for this vulnerability, classifying its current exploit status as unproven (E:U).

Remediation & Patch Completeness

To remediate CVE-2026-87697, software developers and system administrators must upgrade their .NET runtimes and SDKs to patched release versions. Microsoft has made updates available across all supported release channels.

In custom WPF application implementations that interact with IDataObject or ITypedDataObject directly, developers must review call sites and ensure autoConvert: false is explicitly specified when accepting object payloads from untrusted sources or clipboard handlers.

The patch effectively disables unintended object deserialization during generic type retrieval operations, providing complete remediation for the identified clipboard coercion vectors without breaking valid single-type extraction workflows.

Official Patches

Microsoft MSRCMicrosoft Security Response Center Vulnerability Advisory for CVE-2026-87697

Fix Analysis (2)

Technical Appendix

CVSS Score
8.8/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected Systems

Microsoft .NET 8.0Microsoft .NET 9.0Microsoft .NET 10.0Microsoft .NET 11.0Microsoft Visual Studio 2022 (v17.14)Microsoft Visual Studio 2026 (v18.10)

Affected Versions Detail

Product
Affected Versions
Fixed Version
.NET 8.0
Microsoft
>= 8.0.0, < 8.0.328.0.32
.NET 9.0
Microsoft
>= 9.0.0, < 9.0.219.0.21
.NET 10.0
Microsoft
>= 10.0.0, < 10.0.1310.0.13
.NET 11.0
Microsoft
>= 11.0.0, < 11.0.0-rc.211.0.0-rc.2
Visual Studio 2022
Microsoft
>= 17.14.0, < 17.14.4217.14.42
Visual Studio 2026
Microsoft
>= 18.10.0, < 18.10.418.10.4
AttributeDetail
CWE IDCWE-502
Attack VectorNetwork (AV:N)
Attack ComplexityLow (AC:L)
Privileges RequiredNone (PR:N)
User InteractionRequired (UI:R)
CVSS v3.1 Score8.8 (HIGH)
Exploit StatusNone / Unproven
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1059Command and Scripting Interpreter
Execution
T1190Exploit Public-Facing Application
Initial Access
CWE-502
Deserialization of Untrusted Data

The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

Vulnerability Timeline

CVE Published and Official Vendor Advisory Released by Microsoft
2026-10-13

References & Sources

  • [1]Microsoft Vulnerability Advisory
  • [2]CVE Record
  • [3]dotnet/wpf Fix Commit

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•38 minutes ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
1 views•10 min read
•about 2 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
4 views•9 min read
•about 3 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
3 views•11 min read
•about 4 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
3 views•10 min read
•about 5 hours ago•GHSA-47W9-6R3F-938G
9.9

GHSA-47w9-6r3f-938g: Authorization Bypass and Host Root Command Execution in Canonical LXD and Incus

A missing authorization and configuration validation vulnerability in Canonical LXD and LXC Incus allows authenticated users within restricted projects to bypass project security boundaries. By smuggling prohibited low-level configuration directives (such as raw.lxc or raw.qemu) inside instance snapshots or backup archives, an attacker can restore these configurations within a restricted project and execute arbitrary commands with root privileges on the underlying host operating system.

Alon Barad
Alon Barad
4 views•11 min read
•about 6 hours ago•GHSA-JPF8-86F3-WP38
9.9

CVE-2026-48752: Arbitrary Host File Read and Write via Templates Symlink in Canonical LXD and Incus

A symbolic link traversal vulnerability (CWE-59) in Canonical LXD and Linux Containers Incus allows an authenticated user with image import permissions to read and write arbitrary files on the host filesystem. During image archive unpacking, the daemon fails to reject top-level symbolic links for the instance `templates` directory. Subsequent requests to the instance template API endpoints follow this symbolic link outside the instance storage directory with root privileges, enabling complete host compromise.

Amit Schendel
Amit Schendel
4 views•10 min read