Skip to main content
Vulnerability Database/CVE-2024-21405

CVE-2024-21405: Windows 10 1507 MSMQ Privilege Escalation

CVE-2024-21405 is a privilege escalation vulnerability in Microsoft Message Queuing (MSMQ) for Windows 10 1507 that allows attackers to gain elevated system privileges. This post 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-2024-21405 Overview

CVE-2024-21405 is an elevation of privilege vulnerability in Microsoft Message Queuing (MSMQ) that affects a broad range of Windows client and server operating systems. The flaw is tracked under CWE-591 (Sensitive Data Storage in Improperly Locked Memory) and allows a locally authenticated attacker to elevate privileges on the host. Microsoft published the advisory on February 13, 2024, as part of its monthly security release cycle.

Critical Impact

A low-privileged local user who successfully exploits this vulnerability can gain higher privileges on the affected Windows host, leading to confidentiality, integrity, and availability compromise.

Affected Products

  • Microsoft Windows 10 (1507, 1607, 1809, 21H2, 22H2)
  • Microsoft Windows 11 (21H2, 22H2, 23H2)
  • Microsoft Windows Server 2008, 2012, 2016, 2019, 2022, and Server 2022 23H2

Discovery Timeline

  • 2024-02-13 - CVE-2024-21405 published to NVD and Microsoft advisory released
  • 2026-08-10 - Last updated in NVD database

Technical Details for CVE-2024-21405

Vulnerability Analysis

Microsoft Message Queuing (MSMQ) is a Windows messaging service that enables applications on separate systems to communicate asynchronously using queued messages. The service runs with elevated privileges and processes structured message data on the local system. CVE-2024-21405 arises in how MSMQ handles sensitive data in memory, allowing a local, authenticated attacker to influence execution context and gain higher privileges.

Exploitation requires local access and valid credentials on the target system. The attack complexity is high because the attacker must win specific conditions to trigger the flaw reliably. Successful exploitation yields full impact on confidentiality, integrity, and availability of the host.

Root Cause

The underlying weakness aligns with CWE-591, which describes sensitive data placed in memory regions that are not properly locked or protected. In the MSMQ context, this allows another local process to observe or influence data that should remain isolated to the privileged service. Microsoft has not published low-level technical details beyond the advisory.

Attack Vector

The attack vector is local. An authenticated attacker with low privileges executes code on the affected system and interacts with the MSMQ service to trigger the condition. No user interaction is required beyond the attacker's own execution. The vulnerability does not provide remote exploitation potential on its own, but it is a strong candidate for post-exploitation privilege escalation after an initial foothold.

See the Microsoft CVE-2024-21405 Advisory for vendor-authoritative detail.

Detection Methods for CVE-2024-21405

Indicators of Compromise

  • Unexpected child processes spawned by the MSMQ service (mqsvc.exe) or associated binaries.
  • New or modified privileged accounts, scheduled tasks, or services created shortly after suspicious activity against MSMQ.
  • Local processes performing abnormal interprocess communication with the MSMQ service by low-privileged users.

Detection Strategies

  • Monitor process ancestry for mqsvc.exe and alert on token manipulation or privilege changes originating from the service context.
  • Correlate Windows Security event logs for privilege use (Event IDs 4672, 4673, 4674) with recent MSMQ interactions.
  • Hunt for unexpected loading of MSMQ-related modules such as mqrt.dll by non-standard processes.

Monitoring Recommendations

  • Enable detailed command-line and process creation auditing (Event ID 4688) on all hosts where MSMQ is installed.
  • Inventory systems running the MSMQ feature; many Windows installations enable it only when a dependent application requires it.
  • Forward endpoint telemetry to a centralized analytics platform to establish behavioral baselines for the MSMQ service.

How to Mitigate CVE-2024-21405

Immediate Actions Required

  • Apply the February 2024 Microsoft security update for each affected Windows build as documented in the Microsoft advisory.
  • Audit systems to confirm whether the Message Queuing Windows feature is installed and required; remove it where it is not needed.
  • Restrict local logon rights and limit standard user execution paths that could be used to stage a local privilege escalation chain.

Patch Information

Microsoft released patches for all supported Windows 10, Windows 11, and Windows Server versions listed in the advisory. Administrators should consult the Microsoft Security Update Guide entry for CVE-2024-21405 to identify the specific KB article and build number applicable to each operating system in their environment. Legacy Windows Server 2008 and 2012 systems require updates through the Extended Security Updates (ESU) program where applicable.

Workarounds

  • Disable the Message Queuing service (MSMQ) on hosts that do not require it, which removes the vulnerable attack surface entirely.
  • Block TCP port 1801 at the host firewall to limit MSMQ exposure, noting this does not fully mitigate local exploitation.
  • Enforce least privilege and application control policies to reduce the risk that a low-privileged attacker can execute code locally.
bash
# Check if the MSMQ feature is installed and disable it if unused
Get-WindowsFeature -Name MSMQ
Stop-Service -Name MSMQ -Force
Set-Service -Name MSMQ -StartupType Disabled
Uninstall-WindowsFeature -Name MSMQ

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.