Description
For RocketMQ versions 5.1.0 and below, under certain conditions, there is a risk of remote command execution.
Several components of RocketMQ, including NameServer, Broker, and Controller, are leaked on the extranet and lack permission verification, an attacker can exploit this vulnerability by using the update configuration function to execute commands as the system users that RocketMQ is running as. Additionally, an attacker can achieve the same effect by forging the RocketMQ protocol content.
To prevent these attacks, users are recommended to upgrade to version 5.1.1 or above for using RocketMQ 5.x or 4.9.6 or above for using RocketMQ 4.x .
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache RocketMQ | ≤ 5.1.0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Apache RocketMQ update config RCE
exploit/multi/http/apache_rocketmq_update_config
GitHub 13 repositories · most starred shown
-
SuperZero/CVE-2023-33246 ★ 113 · Jun 1, 2023
Apache RocketMQ 远程代码执行漏洞(CVE-2023-33246) Exploit
-
Malayke/CVE-2023-33246_RocketMQ_RCE_EXPLOIT ★ 106 · Jun 1, 2023
CVE-2023-33246 RocketMQ RCE Detect By Version and Exploit
-
Le1a/CVE-2023-33246 ★ 81 · Jun 1, 2023
Apache RocketMQ 远程代码执行漏洞(CVE-2023-33246) Exploit
-
I5N0rth/CVE-2023-33246 ★ 62 · May 30, 2023
-
vulncheck-oss/fetch-broker-conf ★ 5 · Sep 4, 2023
A go-exploit for fetching the RocketMQ broker configuration in order to discover indicators of compromise for CVE-2023-33246
-
0xKayala/CVE-2023-33246 ★ 2 · Oct 28, 2023
CVE-2023-33246 - Apache RocketMQ config RCE
-
P4x1s/CVE-2023-33246 ★ 2 · Jun 2, 2023
CVE-2023-33246:Apache RocketMQ 远程命令执行漏洞检测工具
-
MkJos/CVE-2023-33246_RocketMQ_RCE_EXP ★ 1 · Dec 26, 2023
-
d0rb/CVE-2023-33246 ★ 1 · Aug 11, 2023
CVE-2023-33246 POC
-
4mazing/CVE-2023-33246-Copy ★ 1 · May 31, 2023
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- RocketMQ <= 5.1.0 - Remote Code Execution network/cves/2023/CVE-2023-33246.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.rocketmq:rocketmq-broker | >= 5.0.0, < 5.1.1 | 5.1.1 | GHSA-x3cq-8f32-5f63 |
| Maven | org.apache.rocketmq:rocketmq-controller | >= 5.0.0, < 5.1.1 | 5.1.1 | GHSA-x3cq-8f32-5f63 |
| Maven | org.apache.rocketmq:rocketmq-namesrv | >= 4.0.0, < 4.9.6 | 4.9.6 | GHSA-x3cq-8f32-5f63 |
| Maven | org.apache.rocketmq:rocketmq-namesrv | >= 5.0.0, < 5.1.1 | 5.1.1 | GHSA-x3cq-8f32-5f63 |