cbcvebase.
CVE-2023-37582
published 2023-07-12

CVE-2023-37582: 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…

PriorityP192critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
90.43%
99.8th percentile
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.

Affected

2 ranges
VendorProductVersion rangeFixed in
apacherocketmq<= 4.9.6
apacherocketmq5.0.0 – 5.1.1

Detection & IOCsextracted from sources · hover to see the quote

port9876
bytes
000000a4000000617b22636f6465223a3331382c22666c6167223a302c226c616e6775616765223a224a415641222c226f7061717565223a302c2273657269616c697a655479706543757272656e74525043223a224a534f4e222c2276657273696f6e223a3430357d636f6e66696753746f7265506174683d2f746d702f70776e65640a70726f64756374456e764e616d653d746573742f706174685c6e746573745c6e74657374
snort
alert tcp any any -> $HOME_NET any (msg:"ET EXPLOIT Apache RocketMQ Nameserver Arbitrary File Write (CVE-2023-37582)"; flow:established,to_server; content:"|22|code|22 3a|318"; content:"configStorePath|3d|"; content:"productEnvName|3d|"; fast_pattern; reference:url,github.com/Malayke/CVE-2023-37582_EXPLOIT; reference:cve,2023-37582; classtype:misc-attack; sid:2065400; rev:1; metadata:affected_product Apache_RocketMQ, attack_target Networking_Equipment, created_at 2025_10_27, cve CVE_2023_37582, deployment Perimeter, deployment Internal, confidence High, signature_severity Major, updated_at 2025_10_27; target:dest_ip;)
  • Detect exploit attempts by matching TCP traffic to port 9876 containing RocketMQ NameServer update-config payload: look for code 318 (0x13e), 'configStorePath=' and 'productEnvName=' in the same stream.
  • Monitor for RocketMQ NameServer processes (port 9876) exposed on the internet without authentication; ShadowServer tracks hundreds of daily scanning/exploitation IPs targeting this service.
  • Watch for DreamBus botnet activity dropping XMRig Monero miners on RocketMQ servers — a known post-exploitation payload chain for this CVE.
  • ·CVE-2023-37582 is a bypass/incomplete fix of CVE-2023-33246; both CVEs share the same attack vector (NameServer update configuration function) and should be treated as the same detection surface.
  • ·The vulnerability is only exploitable when the NameServer address is exposed on the extranet without permission verification; internal-only deployments have a significantly reduced attack surface.
  • ·ShadowServer-observed activity may include benign researcher scanning in addition to actual exploitation attempts, so raw scan counts should not be treated as confirmed compromise.

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
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.