Security

Microsoft Security Advisory CVE-2026-70197 Fixes .NET and Visual Studio RCE Vulnerability

Microsoft has issued an out-of-band security update for .NET and Visual Studio addressing a high-severity remote code execution vulnerability in System.Net.Sockets. The vulnerability involves an out-of-bounds write during ReceiveFromAsync on Windows when reusing socket argument instances across IPv4 and IPv6 datagram sockets. This update provides corrected packages under CVE-2026-70197 after a previous October 13 advisory lacked the fix.

What changed From the source

Microsoft released an out-of-band security update on October 25, 2026, to address CVE-2026-70197, a high-severity vulnerability tracked with CVSS score 8.1. The flaw resides in System.Net.Sockets on Windows platforms across all architectures. When applications reuse a SocketAsyncEventArgs instance across IPv4 and IPv6 datagram sockets, an undersized cached native address buffer can be retained. This behavior permits an unauthenticated out-of-bounds write during the ReceiveFromAsync operation.

The vulnerability was initially disclosed in an advisory on October 13, 2026, but the corresponding fix was omitted from those initial updates. The revision delivers the corrected packages under the existing CVE designation. Affected packages include Windows runtimes for .NET 8.0, .NET 9.0, .NET 10.0, and .NET 11.0 preview or release candidate builds. Specifically, .NET 8.0 is fixed in version 8.0.33, .NET 9.0 in version 9.0.22, .NET 10.0 in version 10.0.14, and .NET 11.0 in version 11.0.0-rc.3.26522.148.

  • Affected package examples include Microsoft.NETCore.App.Runtime.win-x64, win-x86, and win-arm64 for the specified .NET versions.
  • The issue impacts both CoreCLR and Mono runtime implementations on Windows.
  • Remediation requires updating the runtime or SDK packages and restarting running applications or recompiling self-contained deployments.

At a glance · Security

Affects .NET 8.0, .NET 9.0, .NET 10.0, .NET 11.0

What changedWhy it mattersWho should careUpgrade and migration considerations

Why it matters Analysis

Out-of-bounds write vulnerabilities (CWE-787) in core networking layers pose significant operational risks because they can potentially lead to remote code execution or application crashes. Because the trigger condition involves standard networking patterns such as reusing socket event argument objects for datagram handling across different IP address families, services with high-frequency network I/O might inadvertently expose this attack surface if unpatched.

  • The high CVSS score of 8.1 highlights the severity of potential exploits involving unauthenticated network vectors.
  • Self-contained applications bundle their own runtimes, meaning that a simple system-wide runtime update will not suffice for those distributions; they must be rebuilt and redeployed.

Who should care Analysis

Development and security teams maintaining .NET applications hosted on Windows operating systems should prioritize this advisory immediately. Any application utilizing datagram sockets with reused socket argument objects across IPv4 and IPv6 protocols falls directly into the affected vector space.

Furthermore, developers managing enterprise environments via Visual Studio will receive prompts to update their SDKs, ensuring that local development environments align with production safety requirements.

  • Windows administrators and DevOps engineers overseeing self-contained .NET deployments.
  • Software architects reviewing network communication components that implement high-performance socket reuse patterns.

Upgrade and migration considerations Analysis

To mitigate the vulnerability, teams must install the latest patched runtimes or SDKs corresponding to their utilized .NET major version. For .NET 8.0, the target runtime is version 8.0.33 (with associated SDKs 8.0.133 or 8.0.427). For .NET 9.0, the target runtime is version 9.0.22 (with SDKs 9.0.123 or 9.0.320). For .NET 10.0, update to runtime version 10.0.14 (or SDKs 10.0.114 or 10.0.403), and for .NET 11.0, update to runtime version 11.0.0-rc.3.26522.148 (or SDK 11.0.100-rc.3.26522.148).

After applying the updates through direct downloads, package references, or Visual Studio prompts, developers must restart all active applications. Self-contained deployments require a full recompilation and redeployment cycle to incorporate the secured runtime binaries.

  • Verify installed versions using the dotnet --info command.
  • Ensure all self-contained deployment packages are rebuilt with the new patched dependencies.

Sources and further reading

Original: “Microsoft Security Advisory CVE-2026-70197 | .NET and Visual Studio Remote Code Execution Vulnerability | October 25, 2026 OOB update”, .NET Announcements, published 25 Oct 2026, retrieved 25 Oct 2026. This article was drafted with AI assistance from the official source and passed automated fact and quality checks. Spotted a mistake? See our corrections policy.