CVE-2023-37582: RocketMQ - Command Injection
- Cve: CVE-2023-37582
- Name: RocketMQ - Command Injection
- 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.
- Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
- Remediation: Upgrade RocketMQ to version 5.1.2 or above for 5.x series, or 4.9.7 or above for 4.x series.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.90427
- Epss percentile: 0.99805
- Assignee: [email protected]
- Published at: 2023-07-12T10:15:11Z
- Age in days: 1231
- Modified at: 2026-06-17T06:08:30Z
- Patch available: yes
- Public exploits total: 4
- References total: 4
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-37582
- Nvd status: modified
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2024-09-18 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2023-37582 | https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2023/CVE-2023-37582.yaml |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/shoucheng3/apache__rocketmq_CVE-2023-37582_4-9-6 | poc-in-github | 2025-08-16 |
| https://github.com/laishouchao/Apache-RocketMQ-RCE-CVE-2023-37582-poc | poc-in-github | 2025-05-12 |
| https://github.com/Malayke/CVE-2023-37582_EXPLOIT | poc-in-github | 2023-07-14 |
| https://github.com/Malayke/CVE-2023-37582_EXPLOIT.git | vulncheck-xdb | 2023-07-14 |
References
| Url | Source | Tags |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2023/07/12/1 | nvd | Mailing List, Patch, Third Party Advisory |
| https://lists.apache.org/thread/m614czxtpvlztd7mfgcs2xcsg36rdbnc | nvd | Mailing List, Patch, Vendor Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2023/CVE-2023-37582.yaml | nuclei_template | Nuclei Template |
| https://media.defense.gov/2024/Sep/18/2003547016/-1/-1/0/CSA-PRC-LINKED-ACTORS-BOTNET.PDF | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| apache:rocketmq | >= 5.0.0, <= 5.1.1; <= 4.9.6 | no | nvd | /v1/products/apache/rocketmq |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| apache/rocketmq | package | yes | /v1/repositories/apache/rocketmq |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2024-09-18
- Public exploit: yes
- Public exploit count: 4
- Public exploit first date: 2023-07-14
- Remote: yes
- Exposed hosts: 21236
- Checked, none or zero: known exploited, exploitation seen, initial access, authentication required
- Not known: known exploited since, initial access since, hackerone reports