CVE-2023-21554: Microsoft Message Queuing (MSMQ) Remote Code Execution Vulnerability
CVE-2023-21554 is a remote code execution vulnerability in Microsoft Message Queuing (MSMQ), rated Critical by Microsoft, with a CVSS 3.1 base score of 9.8 (Critical). An attacker can exploit it remotely over the network, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild and rates exploitation as more likely. The EPSS model estimates a 53.28% probability of exploitation activity in the next 30 days, higher than 99% of all scored vulnerabilities. Microsoft released the fix on 11 April 2023 in the April 2023 Patch Tuesday, delivered through 15 security updates (KB5025229, KB5025230, KB5025221, KB5025224 and more). It affects 35 products in 2 product families (Windows, ESU).
Key facts
- CVE ID
- CVE-2023-21554
- Severity
- Critical CVSS 9.8
- Microsoft severity
- Critical
- Impact
- Remote Code Execution
- Exploited in the wild
- No
- Publicly disclosed
- No
- Exploitation likelihood
- More Likely
- Weakness
- CWE-20
- EPSS
- 53.28% (percentile 99%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- April 2023 Patch Tuesday
- Product families
- Windows, ESU
CVSS score and vector
Microsoft scores CVE-2023-21554 at 9.8 (temporal 8.5) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
| Metric | Value |
|---|---|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
| Exploit code maturity | Unproven |
| Remediation level | Official fix |
| Report confidence | Confirmed |
Frequently asked questions (Microsoft)
How could an attacker exploit the vulnerability?
To exploit this vulnerability, an attacker would need to send a specially crafted malicious MSMQ packet to a MSMQ server. This could result in remote code execution on the server side.
Mitigations and workarounds
Mitigation refers to a setting, common configuration, or general best-practice, existing in a default state, that could reduce the severity of exploitation of a vulnerability. The following mitigating factors might be helpful in your situation:
The Windows message queuing service, which is a Windows component, needs to be enabled for a system to be exploitable by this vulnerability. This feature can be added via the Control Panel.
You can check to see if there is a service running named Message Queuing and TCP port 1801 is listening on the machine.
Affected products (35)
Windows
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Windows 10 Version 1809 for 32-bit Systems | KB5025229 | Security Update | 10.0.17763.4252 | Yes |
| Windows 10 Version 1809 for x64-based Systems | KB5025229 | Security Update | 10.0.17763.4252 | Yes |
| Windows 10 Version 1809 for ARM64-based Systems | KB5025229 | Security Update | 10.0.17763.4252 | Yes |
| Windows Server 2019 | KB5025229 | Security Update | 10.0.17763.4252 | Yes |
| Windows Server 2019 (Server Core installation) | KB5025229 | Security Update | 10.0.17763.4252 | Yes |
| Windows Server 2022 | KB5025230 | Security Update | 10.0.20348.1668 | Yes |
| Windows Server 2022 (Server Core installation) | KB5025230 | Security Update | 10.0.20348.1668 | Yes |
| Windows 10 Version 20H2 for 32-bit Systems | KB5025221 | Security Update | 10.0.19042.2846 | Yes |
| Windows 10 Version 20H2 for ARM64-based Systems | KB5025221 | Security Update | 10.0.19042.2846 | Yes |
| Windows 11 version 21H2 for x64-based Systems | KB5025224 | Security Update | 10.0.22000.1817 | Yes |
| Windows 11 version 21H2 for ARM64-based Systems | KB5025224 | Security Update | 10.0.22000.1817 | Yes |
| Windows 10 Version 21H2 for 32-bit Systems | ||||
| Windows 10 Version 21H2 for ARM64-based Systems | ||||
| Windows 10 Version 21H2 for x64-based Systems | ||||
| Windows 11 Version 22H2 for ARM64-based Systems | KB5025239 | Security Update | 10.0.22621.1555 | Yes |
| Windows 11 Version 22H2 for x64-based Systems | KB5025239 | Security Update | 10.0.22621.1555 | Yes |
| Windows 10 Version 22H2 for x64-based Systems | ||||
| Windows 10 Version 22H2 for ARM64-based Systems | ||||
| Windows 10 Version 22H2 for 32-bit Systems | ||||
| Windows 10 for 32-bit Systems | KB5025234 | Security Update | 10.0.10240.19869 | Yes |
| Windows 10 for x64-based Systems | KB5025234 | Security Update | 10.0.10240.19869 | Yes |
| Windows 10 Version 1607 for 32-bit Systems | KB5025228 | Security Update | 10.0.14393.5850 | Yes |
| Windows 10 Version 1607 for x64-based Systems | KB5025228 | Security Update | 10.0.14393.5850 | Yes |
| Windows Server 2016 | KB5025228 | Security Update | 10.0.14393.5850 | Yes |
| Windows Server 2016 (Server Core installation) | KB5025228 | Security Update | 10.0.14393.5850 | Yes |
ESU
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Windows Server 2008 for 32-bit Systems Service Pack 2 | KB5025271 KB5025273 | Monthly Rollup Security Only | 6.0.6003.22015 6.0.6003.22015 | Yes Yes |
| Windows Server 2008 for 32-bit Systems Service Pack 2 (Server Core installation) | KB5025271 KB5025273 | Monthly Rollup Security Only | 6.0.6003.22015 6.0.6003.22015 | Yes Yes |
| Windows Server 2008 for x64-based Systems Service Pack 2 | KB5025271 KB5025273 | Monthly Rollup Security Only | 6.0.6003.22015 6.0.6003.22015 | Yes Yes |
| Windows Server 2008 for x64-based Systems Service Pack 2 (Server Core installation) | KB5025271 KB5025273 | Monthly Rollup Security Only | 6.0.6003.22015 6.0.6003.22015 | Yes Yes |
| Windows Server 2008 R2 for x64-based Systems Service Pack 1 | KB5025279 KB5025277 | Monthly Rollup Security Only | 6.1.7601.26466 6.1.7601.26466 | Yes Yes |
| Windows Server 2008 R2 for x64-based Systems Service Pack 1 (Server Core installation) | KB5025279 KB5025277 | Monthly Rollup Security Only | 6.1.7601.26466 6.1.7601.26466 | Yes Yes |
| Windows Server 2012 | KB5025287 KB5025272 | Monthly Rollup Security Only | 6.2.9200.24216 6.2.9200.24216 | Yes Yes |
| Windows Server 2012 (Server Core installation) | KB5025287 KB5025272 | Monthly Rollup Security Only | 6.2.9200.24216 6.2.9200.24216 | Yes Yes |
| Windows Server 2012 R2 | KB5025285 KB5025288 | Monthly Rollup Security Only | 6.3.9600.20919 6.3.9600.20919 | Yes Yes |
| Windows Server 2012 R2 (Server Core installation) | KB5025285 KB5025288 | Monthly Rollup Security Only | 6.3.9600.20919 6.3.9600.20919 | Yes Yes |
Security updates (15)
- KB5025229 (Security Update)
- KB5025230 (Security Update)
- KB5025221 (Security Update)
- KB5025224 (Security Update)
- KB5025239 (Security Update)
- KB5025234 (Security Update)
- KB5025228 (Security Update)
- KB5025271 (Monthly Rollup)
- KB5025273 (Security Only)
- KB5025279 (Monthly Rollup)
- KB5025277 (Security Only)
- KB5025287 (Monthly Rollup)
- KB5025272 (Security Only)
- KB5025285 (Monthly Rollup)
- KB5025288 (Security Only)
Exploitation and detection
Detection and weaponization
Weaponization maturity: Detection.
Sigma rules (1)
Metasploit modules (1)
- auxiliary_scanner/msmq/cve_2023_21554_queuejumper
Proof-of-concept repositories (6)
- zoemurmure/CVE-2023-21554-PoC · 60 stars
- 3tternp/CVE-2023-21554 · 29 stars
- Rahul-Thakur7/CVE-2023-21554
- leongxudong/MSMQ-Vulnerability · 5 stars
- shootweb/CVE-2023-21554 · 2 stars
- TheArtist54/CVE-2023-21554-PoC
NIST NVD data
- NVD status
- Modified
- NVD CVSS
- 9.8 (CRITICAL)
- NVD weakness
- CWE-20
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| windows 10 1607 | before 10.0.14393.5850 |
| windows 10 1809 | before 10.0.17763.4252 |
| windows 10 20h2 | before 10.0.19042.2846 |
| windows 10 21h2 | before 10.0.19044.2846 |
| windows 10 22h2 | before 10.0.19045.2846 |
| windows 11 21h2 | before 10.0.22000.1817 |
| windows 11 22h2 | before 10.0.22621.1555 |
| windows server 2008 | all listed versions |
| windows server 2008 r2 (x64) | all listed versions |
| windows server 2012 | all listed versions |
| windows server 2012 r2 | all listed versions |
| windows server 2016 | all listed versions |
| windows server 2019 | all listed versions |
| windows server 2022 | all listed versions |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-21554 (Patch, Vendor Advisory)
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-21554 (Patch, Vendor Advisory)
Acknowledgments
- Haifei Li with Check Point Research
- Wayne Low of Fortinet's FortiGuard Lab
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |