Oct 13, 2026·6 min read·26 visits
An insecure deserialization vulnerability in .NET allows unauthenticated attackers to execute arbitrary code via crafted object graphs requiring user interaction.
CVE-2026-70035 is a high-severity Remote Code Execution (RCE) vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio caused by improper handling during the deserialization of untrusted data (CWE-502). An unauthenticated attacker can execute arbitrary code within the context of the affected process by delivering a crafted serialized payload.
CVE-2026-70035 represents an untrusted deserialization vulnerability impacting multiple versions of Microsoft .NET, .NET Framework, and Visual Studio. The flaw is registered under CWE-502 and allows an unauthenticated remote attacker to execute arbitrary code within the security context of the victim process. Exploitation relies on forcing a vulnerable application to deserialize a maliciously crafted object stream containing pre-identified gadget chains.
The vulnerability exposes network-facing services, desktop applications, and build pipelines processing untrusted input. Systems that receive serialized data structures over network endpoints or open untrusted file formats incorporating .NET object graphs are directly vulnerable. The attack vector is classified as network-based (AV:N) with low complexity (AC:L), requiring user interaction (UI:R) to complete execution.
Microsoft addressed CVE-2026-70035 in October 2026 security updates across affected runtime versions. Due to the wide usage of .NET serialization constructs in legacy and enterprise web applications, unpatched endpoints face elevated exposure to arbitrary remote code execution.
The underlying root cause stems from incomplete type validation during object graph reconstruction within the standard .NET object deserialization pipeline. When standard object binders reconstruct instance topologies from serialized bytes, they evaluate type metadata included in the payload. If the deserializer lacks a strict type filter or type-limiting binder, arbitrary class instances defined within loaded assemblies can be instantiated.
The process relies on object instantiation side effects. During reconstruction, object fields are initialized, property setters are invoked, and methods tied to lifetime events like finalization or disposed states are executed. Attackers assemble gadget chains consisting of standard framework classes whose member access triggers reflection calls, file manipulations, or process creation operations.
Because .NET object graph reconstruction executes before application-level logic validates business rules, payload execution happens immediately upon deserialization. The lack of restrictive type whitelisting by default in legacy interfaces permits class instantiation outside the application domain target intent.
Vulnerable execution paths occur where deserialization APIs encounter untrusted payload inputs. Applications utilizing binary serialization or polymorphic object binders process object stream type definitions directly. The following code demonstrates the vulnerable pattern where binary object graphs are processed without type restrictions:
// Vulnerable implementation: Deserializing untrusted binary streams without type limits
public object DeserializeUntrustedData(Stream incomingStream)
{
// Vulnerable pattern: BinaryFormatter or polymorphic deserializer processes raw type hints
BinaryFormatter formatter = new BinaryFormatter();
// Object binder is omitted or fails to constrain allowed types
return formatter.Deserialize(incomingStream);
}To address this vulnerability, patched implementations enforce strict type binders or migrate away from legacy binary object graph formatters entirely. The remediation introduces strict type constraints or replaces polymorphic object reconstruction with safe data interchange formatters.
// Patched implementation: Enforcing custom SerializationBinder with strict type filtering
public class StrictTypeBinder : SerializationBinder
{
public override Type BindToType(string assemblyName, string typeName)
{
// Explicit whitelist of allowed types for safe deserialization
if (typeName == "SafeNamespace.ExpectedDataObject")
{
return typeof(SafeNamespace.ExpectedDataObject);
}
// Reject all unexpected class instantiations to block gadget chains
throw new SecurityException("Unauthorized type instantiation blocked.");
}
}
public object DeserializeSafely(Stream incomingStream)
{
BinaryFormatter formatter = new BinaryFormatter();
formatter.Binder = new StrictTypeBinder(); // Restricts allowed object types
return formatter.Deserialize(incomingStream);
}The architectural fix eliminates implicit reflection-based instantiation of arbitrary types during stream processing, preventing the execution of gadget properties during object graph binding.
Exploitation of CVE-2026-70035 requires delivering a crafted serialized payload to an application endpoint or user interface. An attacker identifies target endpoints that accept serialized payloads, such as custom RPC interfaces, legacy ASP.NET session state management components, or file import routines in desktop applications.
The attacker constructs a gadget chain using public or proprietary tools to select framework classes that execute commands upon instantiation or property setting. Common gadgets abuse classes within System.Configuration, System.Data, or System.Diagnostics namespaces that invoke Process.Start or compile code upon property assignment.
Upon receiving the payload, the victim process deserializes the stream. As the runtime processes the object graph, member setters in the gadget chain execute consecutively without requiring explicit calls from the surrounding application code. This results in code execution under the privileges of the hosting process.
The severity of CVE-2026-70035 is derived from the full control granted to an attacker upon execution. The attack yields arbitrary code execution within the security context of the affected process. On server deployments, successful exploitation can result in complete system compromise, credential theft, and access to internal databases.
In client scenarios involving Visual Studio or desktop applications, exploitation requires user interaction (UI:R), such as tricking a user into opening a malicious project or processing an untrusted data file. If executed under an elevated account, the exploit grants administrative rights over the host machine.
The CVSS v3.1 score is evaluated at 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H). Confidentiality, integrity, and availability impacts are all categorized as High. As of October 2026, the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
Remediation requires applying Microsoft official security patches across all affected runtime environments. Operating systems and servers running .NET Framework must receive updates through Windows Update or WSUS. For application deployments utilizing standalone .NET runtimes, target assemblies must be updated to fixed versions (8.0.32, 9.0.21, 10.0.13, or 11.0.0-rc.2).
Architectural mitigations involve replacing binary and polymorphic serializers with non-polymorphic formats such as System.Text.Json or XmlSerializer configured with explicit contracts. If legacy deserializers cannot be immediately replaced, developers must enforce strict SerializationBinder instances that restrict object resolution to explicitly whitelisted types.
Network defense mechanisms should isolate application endpoints accepting untrusted serialized payloads. Web Application Firewalls (WAF) can inspect inbound HTTP headers and POST bodies for known binary serialization headers to drop unauthorized serialized traffic before processing.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
.NET Microsoft | >= 8.0.0, < 8.0.32 | 8.0.32 |
.NET Microsoft | >= 9.0.0, < 9.0.21 | 9.0.21 |
.NET Microsoft | >= 10.0.0, < 10.0.13 | 10.0.13 |
.NET Framework Microsoft | < 4.8.9363.0 | 4.8.9363.0 |
Visual Studio 2022 Microsoft | >= 17.14.0, < 17.14.42 | 17.14.42 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-502 (Deserialization of Untrusted Data) |
| CVSSv3.1 Score | 8.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) |
| Attack Vector | Network |
| Privileges Required | None |
| User Interaction | Required |
| Exploit Status | Unproven / None |
| CISA KEV Status | Not Listed |
The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid or safe.
CVE-2026-114155 is a local elevation of privilege vulnerability affecting Microsoft .NET on Linux and macOS platforms. The vulnerability exists within the dotnet-watch (Hot Reload) component and is caused by a Time-of-Check Time-of-Use (TOCTOU) race condition (CWE-367) during the generation and execution of temporary XML solution files (.slnx) in shared system temporary directories. A local attacker with low privileges can intercept and modify the temporary solution file before MSBuild evaluates it, achieving arbitrary code execution in the security context of the user running dotnet-watch.
CVE-2026-118748 is a remote Denial of Service (DoS) vulnerability in Microsoft ASP.NET Core (.NET 11.0 preview releases prior to 11.0.0) and Microsoft Visual Studio 2026 (prior to 18.12.0). The flaw originates from unbounded resource allocation (CWE-770) within the Blazor static server-side rendering (static-SSR) validation pipeline, where dynamic or attacker-supplied form field identifiers are cached in a singleton-scoped memory structure without size limits or eviction policies. Unauthenticated remote attackers can exploit this condition over the network by sending repeated HTTP requests with unique field names, exhausting heap memory and terminating the host process via an unhandled OutOfMemoryException.
CVE-2026-114150 is a network-accessible information disclosure vulnerability affecting Microsoft ASP.NET Core in .NET 11.0 preview releases and Microsoft Visual Studio 2026 prior to version 18.12.0. The flaw stems from the use of uninitialized resources (CWE-908) within response buffering components, specifically ResponseBufferingStream used by middleware such as HTTP Logging and Output Caching. Because rented memory segments from ArrayPool<byte> or MemoryPool<byte> are not cleared upon return or strictly bounded to the exact written byte count during subsequent reads, residual response payloads from earlier HTTP requests remain in the buffer tail. Downstream consumers or log sinks reading these buffers expose confidential cross-session data, including authentication tokens and personally identifiable information.
An incorrect authorization vulnerability (CWE-863) exists in the ASP.NET Core SignalR HTTP Connection Dispatcher (`Microsoft.AspNetCore.Http.Connections`). The connection negotiation process failed to bind the authenticated caller identity to the generated connection state, and subsequent transport or message dispatch handlers failed to verify caller consistency. Consequently, an authenticated low-privilege attacker who obtains a valid connection identifier or token can inject messages into or hijack another user's SignalR session, achieving an elevation of privilege across security boundaries.
CVE-2026-109478 is a network-accessible Denial of Service (DoS) vulnerability in ASP.NET Core caused by inefficient algorithmic complexity (CWE-407) when parsing comma-separated HTTP request headers. Prior to the patch, the internal helper method ParsingHelpers.GetHeaderSplit repeatedly called StringValues.Concat inside a loop iterating over each comma-separated token. Because StringValues allocates a new array of size k + 1 and copies all existing elements upon each concatenation, processing N tokens incurs O(N^2) time and space complexity. An unauthenticated remote attacker can send HTTP requests with headers containing thousands of short, comma-separated values to exhaust CPU cycles and induce severe Garbage Collection (GC) pauses, rendering the web application unresponsive.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.