Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-83997

CVE-2026-83997: Windows 10 21H2 Use After Free Vulnerability

CVE-2026-83997 is a use after free vulnerability in Windows Message Queuing that enables remote code execution over a network. This article covers the technical details, affected Windows 10 21H2 systems, and mitigation strategies.

Published:

CVE-2026-83997 Overview

CVE-2026-83997 is a use-after-free vulnerability [CWE-416] in the Microsoft Windows Message Queuing (MSMQ) service. An unauthenticated remote attacker can trigger the flaw over the network to execute arbitrary code in the context of the MSMQ service. Microsoft has published a security update through the Microsoft Security Response Center advisory. The vulnerability affects multiple supported Windows client and server releases where MSMQ is installed and reachable.

Critical Impact

Successful exploitation permits remote code execution without authentication or user interaction against systems exposing the MSMQ service (default TCP port 1801).

Affected Products

  • Microsoft Windows 10 21H2 and 22H2 (x86, x64, ARM64)
  • Microsoft Windows 11 23H2, 24H2, 25H2, and 26H1 (x64, ARM64)
  • Microsoft Windows Server 2022 and Windows Server 2025

Discovery Timeline

  • 2026-09-08 - CVE-2026-83997 published to NVD
  • 2026-09-09 - Last updated in NVD database

Technical Details for CVE-2026-83997

Vulnerability Analysis

The flaw resides in the Windows Message Queuing service, which processes MSMQ protocol messages received over the network. A use-after-free condition occurs when the service references heap memory after it has been released. An attacker who sends a crafted sequence of MSMQ packets can influence the freed allocation, causing the service to operate on attacker-controlled data. This enables code execution in the process context of MSMQ, which typically runs with elevated privileges. Attack complexity is high because reliable exploitation depends on winning a memory-state race or grooming the heap into a predictable layout.

Root Cause

The root cause is improper object lifetime management inside the MSMQ service (mqsvc.exe and supporting components such as mqqm.dll). A code path releases a heap object while another code path retains a dangling pointer to the same allocation. Subsequent dereference of that pointer results in a use-after-free, classified under [CWE-416].

Attack Vector

Exploitation is remote and unauthenticated. The attacker must reach the MSMQ endpoint, which listens on TCP port 1801 by default and is enabled only when the Message Queuing feature is installed. The attacker sends specially crafted MSMQ protocol traffic that triggers the vulnerable allocation and free sequence, then reuses the freed memory to redirect execution.

No public proof-of-concept code is available for CVE-2026-83997 at the time of publication. Refer to the Microsoft Security Update for CVE-2026-83997 for authoritative technical detail.

Detection Methods for CVE-2026-83997

Indicators of Compromise

  • Unexpected crashes, restarts, or exceptions in mqsvc.exe recorded in the Windows Application event log
  • Inbound TCP traffic to port 1801 from untrusted networks or unusual source addresses
  • Child processes spawned by mqsvc.exe, such as cmd.exe, powershell.exe, or rundll32.exe
  • Outbound network connections initiated by the MSMQ service to attacker-controlled hosts

Detection Strategies

  • Alert on any process creation where the parent process is mqsvc.exe, which should not spawn interactive utilities under normal operation
  • Monitor for MSMQ service crashes (Event ID 1000 or 7031) followed by anomalous process activity on the same host
  • Inspect network flows for external clients connecting to port 1801 on servers that should only serve internal queue traffic

Monitoring Recommendations

  • Enable Windows process creation auditing (Event ID 4688) and command-line logging on all hosts running Message Queuing
  • Forward MSMQ service logs and Sysmon telemetry to a centralized analytics platform for correlation
  • Baseline expected MSMQ peers and alert on new or unexpected client IPs initiating queue connections

How to Mitigate CVE-2026-83997

Immediate Actions Required

  • Apply the Microsoft security update referenced in the MSRC advisory for CVE-2026-83997 to all affected Windows client and server versions
  • Inventory hosts with the Message Queuing feature installed and prioritize patching those exposed to untrusted networks
  • Block inbound TCP port 1801 at the perimeter and restrict lateral access using host firewalls

Patch Information

Microsoft has released fixes through its standard update channels. Consult the Microsoft Security Update for CVE-2026-83997 for the specific KB articles and build numbers that correspond to each affected Windows version.

Workarounds

  • Disable the Message Queuing (MSMQ) Windows feature on systems that do not require it
  • Restrict TCP port 1801 (and related MSMQ ports 2101, 2103, 2105) to trusted management subnets using Windows Defender Firewall or network ACLs
  • Segment MSMQ servers into isolated network zones and require VPN or Zero Trust access for administrative traffic
bash
# Check for MSMQ feature presence and disable if unused
Get-WindowsFeature -Name MSMQ*
Disable-WindowsOptionalFeature -Online -FeatureName MSMQ-Container -NoRestart

# Block inbound MSMQ traffic at the host firewall
New-NetFirewallRule -DisplayName "Block MSMQ 1801 Inbound" `
  -Direction Inbound -Protocol TCP -LocalPort 1801 -Action Block

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.