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

CVE-2026-85874: Windows Message Queuing Use After Free

CVE-2026-85874 is a use after free vulnerability in Windows Message Queuing Queue Manager allowing authorized attackers to execute code locally. This article covers technical details, affected versions, and mitigation.

Published:

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-85874 Overview

CVE-2026-85874 is a use-after-free vulnerability [CWE-416] in the Windows Message Queuing (MSMQ) Queue Manager. An authorized local attacker can trigger the flaw to execute arbitrary code on an affected Windows system. Microsoft disclosed the issue through its Security Update Guide, with the attack vector classified as local and requiring low privileges.

Successful exploitation compromises confidentiality, integrity, and availability of the host. The vulnerability requires no user interaction, making it a reliable primitive for privilege escalation chains that follow initial access.

Critical Impact

An authenticated local user can achieve code execution in the context of the MSMQ Queue Manager, enabling privilege escalation and persistent compromise of the host.

Affected Products

  • Windows Message Queuing (MSMQ) Queue Manager component
  • Windows operating systems with the MSMQ feature enabled
  • Refer to the Microsoft Security Update Guide for the authoritative list of affected builds

Discovery Timeline

  • 2026-10-13 - CVE-2026-85874 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-85874

Vulnerability Analysis

The flaw is a use-after-free condition within the Windows Message Queuing Queue Manager. The Queue Manager process handles queued message objects on behalf of local and remote callers. When an object is freed but a dangling reference remains reachable, subsequent operations on that reference dereference memory that has been reallocated.

An attacker who authenticates to the host and submits crafted operations against MSMQ can reach the vulnerable code path. The result is controlled reuse of freed memory, which typically yields arbitrary read, write, or control-flow hijack primitives inside the Queue Manager service.

Root Cause

The underlying weakness is improper lifetime management of a heap object [CWE-416]. The Queue Manager releases a tracked object without invalidating or clearing all outstanding references. A later code path then dereferences the stale pointer, operating on attacker-influenced data placed into the reclaimed allocation.

Attack Vector

Exploitation is local and requires valid credentials on the target. The attacker interacts with the local MSMQ interface to drive the Queue Manager through the vulnerable allocate-free-reuse sequence. No user interaction is required, and successful code execution runs in the context of the MSMQ service. Microsoft has not reported in-the-wild exploitation, and no public proof-of-concept is listed in the referenced advisory.

No verified exploit code is public. See the Microsoft Security Update Guide for vendor technical details.

Detection Methods for CVE-2026-85874

Indicators of Compromise

  • Unexpected crashes or restarts of the mqsvc.exe Message Queuing service process
  • Creation of child processes by mqsvc.exe that do not match normal service behavior
  • Access Violation entries in the Windows Application event log referencing MSMQ modules
  • New or modified MSMQ private or public queues created by non-administrative accounts

Detection Strategies

  • Monitor process lineage for mqsvc.exe spawning command interpreters, scripting hosts, or LOLBins
  • Alert on Windows Error Reporting events (Event ID 1000/1001) that reference the Message Queuing service
  • Hunt for abnormal local IPC and RPC activity targeting the MSMQ endpoint from standard user sessions
  • Correlate successful local logons with subsequent MSMQ service anomalies within short time windows

Monitoring Recommendations

  • Enable process creation auditing (Event ID 4688) and command-line logging on hosts running MSMQ
  • Track installation state of the MSMQ-Server Windows feature across the fleet to identify unneeded exposure
  • Centralize MSMQ service and Application event logs for retention and correlation
  • Baseline normal MSMQ queue counts and message volumes to detect deviations

How to Mitigate CVE-2026-85874

Immediate Actions Required

  • Apply the Microsoft security update referenced in the Microsoft Security Update Guide for CVE-2026-85874
  • Inventory all Windows hosts with the Message Queuing feature installed and prioritize patching
  • Restrict interactive and remote logon rights on servers running MSMQ to reduce the authorized attacker population
  • Audit local accounts and service accounts with access to MSMQ endpoints

Patch Information

Microsoft has published guidance and update packages through the Security Update Guide. Administrators should consult the vendor advisory at Microsoft Security Update Guide to identify the correct cumulative update for each affected Windows build and deploy through Windows Update, WSUS, or the Microsoft Update Catalog.

Workarounds

  • Disable the Windows Message Queuing feature on systems that do not require it using Disable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server
  • Stop and disable the MSMQ service where the feature cannot be removed
  • Block TCP port 1801 and related MSMQ ports at the host firewall to limit remote queue interaction
  • Enforce least privilege so that only trusted administrators can authenticate to MSMQ hosts
bash
# Configuration example: disable MSMQ where not required
Get-WindowsOptionalFeature -Online -FeatureName MSMQ-Server
Disable-WindowsOptionalFeature -Online -FeatureName MSMQ-Server -NoRestart
Stop-Service -Name MSMQ -Force
Set-Service -Name MSMQ -StartupType Disabled

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

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

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.