Download PDF version Contact company

Check Point Research recently discovered three vulnerabilities in the ‘Microsoft Message Queuing’ service, commonly known as MSMQ. These vulnerabilities were disclosed to Microsoft and patched in the April Patch Tuesday update.

The most severe of these, dubbed QueueJumper by CPR (CVE-2023-21554), is a critical vulnerability that could allow unauthorized attackers to remotely execute arbitrary code in the context of the Windows service process mqsvc.exe.

Check Point Research (CPR) is releasing this blog after the patch was implemented to raise awareness of this critical vulnerability and provide defense insights and mitigation recommendations for Windows users. They will release the full technical details later this month, giving users time to patch their machines before publicly disclosing the technical details.

Providing defense insights

Three vulnerabilities in the MSMQ service were discovered, with all of them  patched in the April Patch Tuesday update:

  • CVE-2023-21554 (QueueJumper) — Unauthorized Remote Code Execution
  • CVE-2023-21769 — Unauthorized Remote Application Level DoS (service crash)
  • CVE-2023-28302 — Unauthorized Remote Kernel Level DoS (Windows BSOD)

The most significant vulnerability allows unauthorized attackers to execute arbitrary code in the context of the Windows service process, mqsvc.exe. MSMQ is provided as an optional Windows component and is still available on all Windows operating systems, including the latest Windows Server 2022 and Windows 11

Priority-based messaging

The most recent Microsoft documents discussing the service were updated in 2016

According to Microsoft, Microsoft Message Queuing (“MSMQ” for short),“Is a message infrastructure and a development platform for creating distributed, loosely-coupled messaging applications for the Microsoft® Windows® operating system. Message Queuing applications can use the Message Queuing infrastructure to communicate across heterogeneous networks and with computers that may be offline. Message Queuing provides guaranteed message delivery, efficient routing, security, transaction support, and priority-based messaging."

The most recent Microsoft documents discussing the service were updated in 2016. Some MSMQ experts published a blog post in January 2020 exploring the retiring trend of the service.

Despite being considered a ‘forgotten’ or ‘legacy’ service, MSMQ is still available on all Windows operating systems, including the latest Windows Server 2022 and Windows 11 and is provided as an optional Windows component. Users can easily enable the service via the Control Panel or via PowerShell command ‘Install-WindowsFeature MSMQ-Services.’

Executing code remotely

The CVE-2023-21554  vulnerability allows an attacker to potentially execute code remotely and without authorization by reaching the TCP port 1801. In other words, an attacker could gain control of the process through just one packet to the 1801/tcp port with the exploit, triggering the vulnerability.

They now know the attack vector sends packets to the service port 1801/tcp

They now know the attack vector sends packets to the service port 1801/tcp. In order to have a better understanding of the potential impact in the real world of this service, CPR did a full Internet scan. Surprisingly, they found that more than ~360,000 IPs have the 1801/tcp open to the Internet and are running the MSMQ service.

Note that this only includes the number of hosts facing the Internet and does not account for computers hosting the MSMQ service on internal networks, where the number should be far more. The MSMQ service is a ‘middleware’ service that some popular software relies on. When the user installs the popular software, the MSMQ service is enabled on Windows, which may be done without the user’s knowledge.

Good security practice

They recommend all Windows admins check their servers and clients to see if the MSMQ service is installed. Users can check if there is a service running named ‘Message Queuing’, and TCP port 1801 is listening on the computer. If it is installed, double-check if they need it. Closing unnecessary attack surfaces is always a very good security practice.

For this particular vulnerability they discussed, they recommend users install Microsoft's official patch as soon as possible. If the business requires MSMQ but is unable to apply Microsoft's patch right now, users may block the inbound connections for 1801/tcp from untrusted sources with Firewall rules (for example, blocking Internet connections to 1801/tcp for Internet-facing machines), as a workaround.

Check Point IPS has developed and deployed a signature named ‘Microsoft Message Queuing Remote Code Execution (CVE-2023-21554)’ to detect and protect our customers against the QueueJumper vulnerability.

Download PDF version Download PDF version

In case you missed it

How Can The Security Industry Contribute To Protecting The Environment?
How Can The Security Industry Contribute To Protecting The Environment?

When it comes to protecting the environment, the security industry has historically been perched on the sidelines. For instance, the amount of electricity that physical security sy...

Comprehensive K12 Security
Comprehensive K12 Security

For K12 education pioneers, embarking on a journey to upgrade security controls can present a myriad of questions about finding the best-fit solutions and overcoming funding hurdle...

Choosing The Right Fingerprint Capture Technology
Choosing The Right Fingerprint Capture Technology

Choosing the appropriate fingerprint technology for a given application is dependent on factors including the required level of security and matching accuracy, the desired capabili...