CVEs / CVE-2023-33246
CVE-2023-33246: Apache RocketMQ Command Execution Vulnerability
- Known exploited in the CISA KEV catalog since 6 Sep 2023
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 96.5% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2023-33246
Summary
Several components of Apache RocketMQ, including NameServer, Broker, and Controller, are exposed to 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 or achieve the same effect by forging the RocketMQ protocol content.
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 and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache RocketMQ | up to and including 5.1.0 | — |
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.rocketmq:rocketmq-broker (Maven) | from 5.0.0, before 5.1.1 | 5.1.1 |
| org.apache.rocketmq:rocketmq-namesrv (Maven) | from 4.0.0, before 4.9.6 | 4.9.6 |
| org.apache.rocketmq:rocketmq-controller (Maven) | from 5.0.0, before 5.1.1 | 5.1.1 |
| org.apache.rocketmq:rocketmq-namesrv (Maven) | from 5.0.0, before 5.1.1 | 5.1.1 |
Package versions from GHSA-x3cq-8f32-5f63.
Exploitation
| In CISA KEV since | 6 Sep 2023 |
|---|---|
| Due date for US federal agencies | 27 Sep 2023 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-94 |
References
- CVE-2023-33246 on NVD
- CVE-2023-33246 in the CISA KEV catalog
- https://lists.apache.org/thread/1s8j2c8kogthtpv3060yddk03zq0pxyp (cited by CISA)
- CVE-2023-33246 on OSV
- http://packetstormsecurity.com/files/173339/Apache-RocketMQ-5.1.0-Arbitrary-Code-Injection.html Exploit, Third Party Advisory, VDB Entry
- http://www.openwall.com/lists/oss-security/2023/07/12/1 Mailing List, Third Party Advisory
- https://lists.apache.org/thread/1s8j2c8kogthtpv3060yddk03zq0pxyp Mailing List, Vendor Advisory
- https://www.vicarius.io/vsociety/posts/rocketmq-rce-cve-2023-33246-33247 Exploit, Third Party Advisory
- https://github.com/Malayke/CVE-2023-33246_RocketMQ_RCE_EXPLOIT Exploit
- https://github.com/jakabakos/CVE-2023-33246_Apache_RocketMQ_RCE Exploit
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-33246 Third Party Advisory, US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.