Apache Software Foundation Apache RocketMQ
Apache RocketMQ: Possible remote code execution vulnerability when using the update configuration function
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 versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 5.0.0, < 5.1.1
Fixed in 5.1.1
from GitHub Security Advisory GHSA-x3cq-8f32-5f63
- >= 4.0.0, < 4.9.6
Fixed in 4.9.6
from GitHub Security Advisory GHSA-x3cq-8f32-5f63
- >= 5.0.0, < 5.1.1
Fixed in 5.1.1
from GitHub Security Advisory GHSA-x3cq-8f32-5f63
- >= 5.0.0, < 5.1.1
Fixed in 5.1.1
from GitHub Security Advisory GHSA-x3cq-8f32-5f63
Mitigation
Upgrade org.apache.rocketmq:rocketmq-broker to 5.1.1 or later.
Upgrade org.apache.rocketmq:rocketmq-namesrv to 4.9.6 or later.
Upgrade org.apache.rocketmq:rocketmq-controller to 5.1.1 or later.
Upgrade org.apache.rocketmq:rocketmq-namesrv to 5.1.1 or later.
Timeline
Days relative to CVE publicationFirst public PoC 5.5 days after publication; added to CISA KEV 105 days after publication. First PoC: I5N0rth/CVE-2023-33246 (created 30 May 2023, found by us: backfilled).
PoC repositories
Found on GitHub.6 PoCs · 5 pending · 6 informational · 1 not a PoC · 2 suspicious or fake
PoCs 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| I5N0rth/CVE-2023-33246 | 30 May 2023 +5.5 d | 62 | PoC via PoC Index
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| Malayke/CVE-2023-33246_RocketMQ_RCE_EXPLOIT | 1 Jun 2023 +8 d | 106 | PoC
Flags · score 20
Below the suspicion threshold (50); does not change the assessment. |
| d0rb/CVE-2023-33246 | 11 Aug 2023 +79 d | 1 | PoC |
| 0xKayala/CVE-2023-33246 | 28 Oct 2023 +157 d | 2 | PoC |
| Sumitpathania03/Apache-RocketMQ-CVE-2023-33246- | 28 Mar 2024 +309 d | 0 | PoC |
| shoucheng3/apache__rocketmq_CVE-2023-33246_5-1-0 | 17 Aug 2025 +2.2 y | 0 | PoC |
Pending 5
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| liang2kl/iot-exploits | 5 Jul 2023 +42 d | 3 | Pending · repository exceeds size limit via PoC Index |
| Devil0ll/CVE-2023-33246 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| hanch7274/CVE-2023-33246 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| hheeyywweellccoommee/CVE-2023-33246-dgjfd | unknown | 0 | Pending · repository unavailable (HTTP 404) |
| hheeyywweellccoommee/CVE-2023-33246-rnkku | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 6
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| 4mazing/CVE-2023-33246-Copy | 31 May 2023 +6.7 d | 1 | Informational · write-up |
| yizhimanpadewoniu/CVE-2023-33246-Copy | 31 May 2023 +6.7 d | 1 | Informational · write-up |
| Le1a/CVE-2023-33246 | 1 Jun 2023 +7.5 d | 81 | Informational · write-up |
| SuperZero/CVE-2023-33246 | 1 Jun 2023 +7.7 d | 113 | Informational · write-up |
| P4x1s/CVE-2023-33246 | 2 Jun 2023 +8.5 d | 2 | Informational · write-up |
| MkJos/CVE-2023-33246_RocketMQ_RCE_EXP | 26 Dec 2023 +216 d | 1 | Informational · write-up
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Malayke/CVE-2023-37582_EXPLOIT | 14 Jul 2023 +51 d | 47 | Not a PoC · unrelated |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| vulncheck-oss/fetch-broker-conf | 4 Sep 2023 +103 d | 5 | Fake |
| PavilionQ/CVE-2023-33246-mitigation | 29 Jun 2024 +1.1 y | 1 | Suspicious · score 80
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit exploit: Apache RocketMQ update config RCE (exploit/multi/http/apache_rocketmq_update_config) | 5 Jul 2023 | 14 Nov 2026 |
| nuclei template | nuclei template: RocketMQ <= 5.1.0 - Remote Code Execution | 1 Jun 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 6 PoC reposGET /cluster/list.query
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cluster/list\.query(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2023-33246 Apache Software Foundation Apache RocketMQ exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cluster/list.query"; reference:url,poc.griffinguard.io/cve/CVE-2023-33246; classtype:web-application-attack; sid:9264552; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Apache Software Foundation Apache RocketMQ exploit attempt (CVE-2023-33246)
id: gg-pocmon-cve-2023-33246-9264552
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-33246. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2023-33246
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cluster/list.query'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2023.33246