cbcvebase.
CVE-2023-33246
published 2023-05-24

CVE-2023-33246: For RocketMQ versions 5.1.0 and below, under certain conditions, there is a risk of remote command execution. Several components of RocketMQ, including…

PriorityP196critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITInitial access
CISA Known Exploited Vulnerabilitydue 2023-09-27
Exploited in the wild
EPSS
96.60%
99.9th percentile
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

6 ranges
VendorProductVersion rangeFixed in
apacherocketmq< 4.9.64.9.6
apacherocketmq<= 4.9.6
apacherocketmq>= 5.0.0 < 5.1.15.1.1
apacherocketmq5.0.0 – 5.1.1
apache_software_foundationapache_rocketmq<= 4.9.6
apache_software_foundationapache_rocketmq5.0.0 – 5.1.1

Detection & IOCsextracted from sources · hover to see the quote

port10911
port9876
path/tmp/.systemd.3
domainrelay.tor2socks.in
domainru6r4inkaf4thlgflg4iqs5mhqwqubols5qagspvya4whp3dgbvmyhad.onion
commandrocketmqHome=-c $@|sh
bytes
000000a4000000617b22636f6465223a3331382c22666c6167223a302c226c616e6775616765223a224a415641222c226f7061717565223a302c2273657269616c697a655479706543757272656e74525043223a224a534f4e222c2276657273696f6e223a3430357d636f6e66696753746f7265506174683d2f746d702f70776e65640a70726f64756374456e764e616d653d746573742f706174685c6e746573745c6e74657374
bytes
00 00 00 c8 00 00 00 60 7b 22 63 6f 64 65 22 3a 32 35 ... 72 6f 63 6b 65 74 6d 71 48 6f 6d 65 3d 2d 63 20 24 40 7c 73 68
sigma
matchers: type: dsl; dsl: contains_all(raw, "serializeTypeCurrentRPC", "version", "code\":0") AND !contains_any(raw, 'Can not update config','FORBID ACCESS')
  • Scan for RocketMQ Broker exploitation attempts on TCP port 10911; the exploit payload sets rocketmqHome=-c $@|sh to achieve RCE via the update configuration function.
  • Monitor TCP port 9876 (RocketMQ NameServer) for inbound connections from untrusted external IPs; exposure without authentication enables RCE via the update configuration function.
  • Detect DreamBus RocketMQ exploit module by looking for the lock file /tmp/.systemd.3 on disk; its presence indicates an active DreamBus exploit module instance.
  • Detect DreamBus post-exploitation by monitoring for outbound SOCKS5/TOR connections to relay.tor2socks.in:9050 and the .onion domain ru6r4inkaf4thlgflg4iqs5mhqwqubols5qagspvya4whp3dgbvmyhad.
  • For CVE-2023-33246 / CVE-2023-37582 NameServer exploitation, a successful response will contain 'serializeTypeCurrentRPC', 'version', and 'code":0' but NOT 'Can not update config' or 'FORBID ACCESS'.
  • UPX-packed DreamBus ELF binaries replace the standard UPX magic bytes (0x21585055 / 'UPX!') with '.gnu' (0x756e672e); use this as a static signature to identify DreamBus modules.
  • Monitor for processes named 'httpd' or 'sh' executing from /tmp, /root/.config, /usr/bin, or /usr/lib — these are indicators of the perfctl malware dropped after RocketMQ exploitation.
  • Check /etc/ld.so.preload and watch for a rootkit named 'libgcwrap.so' being loaded; this is deployed by perfctl after initial access via CVE-2023-33246.
  • Inspect ~/.profile, ~/.bashrc, and /etc/ld.so.preload for unauthorized modifications as persistence indicators following exploitation of CVE-2023-33246.
  • ·The Shodan query 'rocketmq port:"9876"' can be used to identify internet-exposed RocketMQ NameServer instances potentially vulnerable to CVE-2023-33246/CVE-2023-37582.
  • ·The RocketMQ Broker (port 10911) was never intended to be internet-facing; its administrative interface is insecure by design and should be firewalled from public access.
  • ·CVE-2023-33246 was only partially fixed in version 5.1.1; the NameServer component remained vulnerable and was separately tracked as CVE-2023-37582, requiring upgrade to 5.1.2/4.9.7 or above.
  • ·DreamBus exploit modules scan both internal RFC 1918 ranges and random public IPs, meaning vulnerable RocketMQ instances on internal networks are also at risk if any infected host is present.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
ghsa9.8CRITICAL
osv9.8CRITICAL
vulncheck9.8CRITICAL
cisa9.8CRITICAL
vendor_redhat9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.