WaratekVRT Sign in

CVE-2023-37582 RocketMQ

Affected softwareRocketMQ
Severity9.8 Critical CVSS 3.1 2 scores
Fixed in4.9.7, 5.1.2
WeaknessCode injection (CWE-94)
Published12 Jul 2023
Updated20 Oct 2026

Description

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.

Exploitation status

Exploited

Real-world exploitation reported by VulnCheck KEV. CISA has not confirmed it.

  • CISA KEV not listed
  • VulnCheck KEV listed Exploitation reported in the wild. 1 citation · 1 exploit · earliest 2024-09-18.
  • CISA Vulnrichment exploitation: none
  • Indexed PoC 3 indexed Published artifacts you can open, in GitHub PoC, Nuclei; first seen 2023-07-14.
  • EPSS 90% chance in 30 days A model's forecast, not a report of exploitation. Higher than 99.8% of all scored CVEs.

VulnCheck KEV

Exploitation evidence from VulnCheck Known Exploited Vulnerabilities (VulnCheck KEV), used under VulnCheck's community terms. View CVE-2023-37582 in VulnCheck (free account).

EvidenceSourceDetailDate
Reported exploitation media.defense.gov /2024/Sep/18/2003547016/-1/-1/0/CSA-PRC-LINKED-ACTORS-BOTNET.PDF 2024-09-18
Exploit reference VulnCheck XDB 042b3f3b77e0 Exploit type: initial-access 2023-07-14

1 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Apache RocketMQ Arbitrary File Write Vulnerability Exploit 47 2023-07-14
GitHub PoC laishouchao/Apache-RocketMQ-RCE-CVE-2023-37582-poc 1 2025-05-12
Nuclei Apache RocketMQ - Remote Command Execution

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A researcher's recorded decision for this specific CVE
Finding An AI triage run found this CVE protected by the ARMR Filesystem Write.

Waratek research note

written 2026-11-13

Written by a Waratek engineer who reviewed this CVE. Their decision sets the status above, ahead of every automated rule except a withdrawal.

Comments

Rule Name: ARMR Filesystem Write

Unauthenticated NameServer config update (code 318) sets configStorePath, and Configuration.persist() writes attacker text there through FileOutputStream (on 4.x via .tmp and File.renameTo). ARMR Filesystem Write protecting /* and allowing only the NameServer store and log folders blocks the drop. Files inside those allowed folders can still be overwritten.

How to mitigate CVE-2023-37582

Upgrade RocketMQ to a release that fixes it: 4.9.7 or 5.1.2. Until you can, Waratek RASP blocks exploitation with its filesystem rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.8 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 9.8 CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CISA-ADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.rocketmq:rocketmq-namesrv 0 4.9.7 unbounded
org.apache.rocketmq:rocketmq-namesrv 5.0.0 5.1.2 unbounded

Products and versions

2 products, 4 version entries
SourceVendorProductSchemeAffected versions
nvd apache rocketmq generic ≤ 4.9.6 · ≥ 5.0.0 and ≤ 5.1.1
osv org.apache.rocketmq rocketmq-namesrv generic < 4.9.7 · ≥ 5.0.0 and < 5.1.2

References

URLTags
https://github.com/apache/rocketmq PACKAGE
https://lists.apache.org/thread/m614czxtpvlztd7mfgcs2xcsg36rdbnc WEB
http://www.openwall.com/lists/oss-security/2023/07/12/1 WEB

Timeline

Published2023-07-12By the CVE Program.
VulnCheck KEV: earliest evidence2024-09-18Date of the oldest evidence of exploitation in VulnCheck KEV's record. VulnCheck does not publish the date it listed the CVE.
NVD record modified2026-06-17NVD's own last-modified date for this record.
Last VRT activity2026-10-20Most recent commit touching this CVE's classification, patch or rule file.
Classification created2026-11-13First commit adding this CVE's research note.