CVE-2023-33246
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 .
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache RocketMQ Command Execution Vulnerability |
|---|---|
| Vendor / product | Apache / RocketMQ |
| Date added | 2023-09-06 |
| Federal remediation due date | 2023-09-27 |
| Required action | Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-01-29 |
Timeline
- 2023-05-24Published by the CNA14:45 UTC
- 2023-07-06GitHub advisory published (GHSA-x3cq-8f32-5f63)43 days after publication
- 2023-09-06Added to the CISA KEV catalog105 days after publication
- 2025-01-29CISA SSVC decision recorded616 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2023-33246: RocketMQ <= 5.1.0 - Remote Code Execution
GitHub advisory GHSA-x3cq-8f32-5f63, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.rocketmq:rocketmq-broker | from 5.0.0 before 5.1.1 | 5.1.1 |
| Maven org.apache.rocketmq:rocketmq-controller | from 5.0.0 before 5.1.1 | 5.1.1 |
| Maven org.apache.rocketmq:rocketmq-namesrv | from 4.0.0 before 4.9.6 | 4.9.6 |
| Maven org.apache.rocketmq:rocketmq-namesrv | from 5.0.0 before 5.1.1 | 5.1.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache rocketmq | before 4.9.6fixed in 4.9.6from 5.0.0 before 5.1.1fixed in 5.1.1 | 4.9.65.1.1 |
References
- https://lists.apache.org/thread/1s8j2c8kogthtpv3060yddk03zq0pxyp
- http://packetstormsecurity.com/files/173339/Apache-RocketMQ-5.1.0-Arbitrary-Code-Injection.html
- https://github.com/Malayke/CVE-2023-33246_RocketMQ_RCE_EXPLOIT
- https://github.com/jakabakos/CVE-2023-33246_Apache_RocketMQ_RCE
- https://www.vicarius.io/vsociety/posts/rocketmq-rce-cve-2023-33246-33247
- http://www.openwall.com/lists/oss-security/2023/07/12/1
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-33246
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-33246'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-33246'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-33246'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-33246'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2023-33246'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).