Patchfirst
CVE-2023-33246 KEVPublic exploit Critical · 9.8 EPSS 96.6%

Apache RocketMQ Command Execution Vulnerability

Apache · RocketMQ

Summary

Apache RocketMQ 5.1.0 and below has a flaw in its NameServer, Broker, and Controller components that allows remote command execution. An attacker who can reach these components over the network, which are exposed on the extranet and lack permission verification, can use the update configuration function or forge RocketMQ protocol content to run commands as the system user RocketMQ runs under, with no authentication required and only under the conditions that make these components reachable.

Official description · NVD

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 .

Breakdown
69.8 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
3/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 3 months after disclosure. Public exploit code (Metasploit) was available 1 day before disclosure.

  1. Public exploit codeMetasploit1 day before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+3 mo
  4. Added to CISA KEVEU database agrees+3 mo

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

A fix was bypassed or incomplete once over 7 weeks. The latest fix listed for rocketmq-namesrv is 5.1.2.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2023-33246RocketMQ Command Execution24 May 2023KEV
  2. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textThe 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.
    • Fixed one release later4.9.6 → 4.9.7 (org.apache.rocketmq:rocketmq-namesrv)
    • Fixed one release later5.1.1 → 5.1.2 (org.apache.rocketmq:rocketmq-namesrv)
    • Similar weakness in the same product (machine-matched)same product + CWE + description similarity
    CVE-2023-37582RocketMQ: Possible remote code execution when using the update…12 Jul 2023

Fixes in rocketmq-namesrvMaven package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 5.1.1CVE-2023-3324624 May 2023KEV
  2. 5.1.2CVE-2023-3758212 Jul 2023Latest listed

techniques

3 , grouped by in kill-chain order 3

Resource DevelopmentTA0042

Upload Malware T1608.001
MITRE CTID mapping of the KEV entry · follow-on activity

This vulnerability is exploited by a remote attacker who leverages a command injection flaw in Apache RocketMQ versions 5.1 and lower. By using the update configuration function, the adversary can execute commands as the system user under which RocketMQ is running. This lack of permission verification in components like NameServer, Broker, and Controller, which are exposed on the extranet, allows for remote command execution. Additionally, attackers can forge RocketMQ protocol content to achieve the same effect. Since at least June 2023, threat actors have actively exploited this vulnerability to gain initial access and deploy the DreamBus botnet, a Linux-based malware.

Initial AccessTA0001

MITRE CTID mapping of the KEV entry · how it is exploited

ExecutionTA0002

MITRE CTID mapping of the KEV entry · primary impact

Detection

0 rules for this CVE · 244 general rules for its techniques

Rules for this CVE

0 that reference CVE-2023-33246 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

3 packages in 1 ecosystem. No single main package: each of these ships the affected code.

  • Mavenorg.apache.rocketmq:rocketmq-broker
    Affected: 5.0.0 up to 5.1.1Upgrade to 5.1.1 or later
  • Mavenorg.apache.rocketmq:rocketmq-namesrv
    Affected: 5.0.0 up to 5.1.1; 4.0.0 up to 4.9.6Upgrade to 5.1.2 or later (older lines: 4.9.7)
  • Mavenorg.apache.rocketmq:rocketmq-controller
    Affected: 5.0.0 up to 5.1.1Upgrade to 5.1.1 or later

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

7 links, grouped by NVD tag (3 duplicates merged)
↑ ↓ chooseEnter openEsc close