Description
The RocketMQ NameServer component still has a remote command execution vulnerability as the CVE-2023-33246 issue was not completely fixed in version 5.1.1.
When NameServer address are leaked on the extranet and lack permission verification, an attacker can exploit this vulnerability by using the update configuration function on the NameServer component to execute commands as the system users that RocketMQ is running as.
It is recommended for users to upgrade their NameServer version to 5.1.2 or above for RocketMQ 5.x or 4.9.7 or above for RocketMQ 4.x to prevent these attacks.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache RocketMQ | 5.0.0 – ≤ 5.1.1, ≤ 4.9.6 | — |
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.
GitHub 3 repositories
-
Malayke/CVE-2023-37582_EXPLOIT ★ 47 · Jul 14, 2023
Apache RocketMQ Arbitrary File Write Vulnerability Exploit
-
laishouchao/Apache-RocketMQ-RCE-CVE-2023-37582-poc ★ 1 · May 12, 2025
-
shoucheng3/apache__rocketmq_CVE-2023-37582_4-9-6 ★ 0 · Aug 16, 2025
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.
- Apache RocketMQ - Remote Command Execution network/cves/2023/CVE-2023-37582.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.rocketmq:rocketmq-namesrv | < 4.9.7 | 4.9.7 | GHSA-gpq8-963w-8qc9 |
| Maven | org.apache.rocketmq:rocketmq-namesrv | >= 5.0.0, < 5.1.2 | 5.1.2 | GHSA-gpq8-963w-8qc9 |