{"answers":{"affected":"4 open source packages ship an affected version, including org.apache.rocketmq:rocketmq-namesrv. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37582 exists.","fix":"Upgrade org.apache.rocketmq:rocketmq-namesrv to a fixed version for your release line: 4.9.7 or 5.1.2.","what":"CVE-2023-37582 is a critical command injection vulnerability in Apache RocketMQ, published on 12 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-37582 and fix it if it is affected.\n\nWhat it is: CVE-2023-37582 is a critical command injection vulnerability in Apache RocketMQ, published on 12 Jul 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37582 exists.\n\nAffected packages and fixed versions:\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected all versions; fixed in 4.9.7\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected all versions; fixed in 4.9.7\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected from 5.0.0; fixed in 5.1.2\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected from 5.0.0; fixed in 5.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-37582/ (Markdown: https://insights.sbomify.com/CVE-2023-37582/index.md)","id":"CVE-2023-37582","markdown":"https://insights.sbomify.com/CVE-2023-37582/index.md","name":"CVE-2023-37582","record":{"aliases":["GHSA-gpq8-963w-8qc9"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Message queue server","requires_auth":"none","summary":"Attackers can execute arbitrary commands on Apache RocketMQ NameServer if the address is exposed and lacks permission verification.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"rocketmq","vendor":"apache"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"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. \n\nWhen 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. \n\nIt 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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-07-14","github_poc":3,"max_poc_stars":47,"metasploit":0,"nuclei":1,"refs":[{"date":"2023-07-14T12:22:45Z","kind":"github_poc","ref":"https://github.com/Malayke/CVE-2023-37582_EXPLOIT","stars":47,"title":"Apache RocketMQ Arbitrary File Write Vulnerability Exploit"},{"date":"2025-05-12T02:06:03Z","kind":"github_poc","ref":"https://github.com/laishouchao/Apache-RocketMQ-RCE-CVE-2023-37582-poc","stars":1,"title":null},{"date":"2025-08-16T12:23:29Z","kind":"github_poc","ref":"https://github.com/shoucheng3/apache__rocketmq_CVE-2023-37582_4-9-6","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"network/cves/2023/CVE-2023-37582.yaml","stars":null,"title":"Apache RocketMQ - Remote Command Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Apache RocketMQ: Possible remote code execution when using the update configuration function","id":"CVE-2023-37582","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":4,"n_references":2,"next":{"headline":"Cross-site request forgery in n/a","id":"CVE-2023-37596"},"packages":[{"ecosystem":"Maven","fixed":["4.9.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":null,"source":"GHSA-gpq8-963w-8qc9"},{"ecosystem":"Maven","fixed":["4.9.7"],"introduced":["0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":"pkg:maven/org.apache.rocketmq/rocketmq-namesrv","source":"GHSA-gpq8-963w-8qc9"},{"ecosystem":"Maven","fixed":["5.1.2"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":null,"source":"GHSA-gpq8-963w-8qc9"},{"ecosystem":"Maven","fixed":["5.1.2"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":"pkg:maven/org.apache.rocketmq/rocketmq-namesrv","source":"GHSA-gpq8-963w-8qc9"}],"prev":{"headline":"Cross-site scripting in Apache Roller","id":"CVE-2023-37581"},"products":["Apache RocketMQ"],"published":"2023-07-12","related":[{"cvss_score":9.8,"headline":"Apache RocketMQ Command Execution","id":"CVE-2023-33246","kev_date_added":"2023-09-06","published":"2023-05-24"},{"cvss_score":7.5,"headline":"Apache RocketMQ: Unauthorized Exposure of Sensitive Data","id":"CVE-2024-23321","kev_date_added":null,"published":"2024-07-22"},{"cvss_score":5.3,"headline":"Directory traversal in Apache RocketMQ","id":"CVE-2019-17572","kev_date_added":null,"published":"2020-05-14"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary commands on Apache RocketMQ NameServer if the address is exposed and lacks permission verification.","url":"https://insights.sbomify.com/CVE-2023-37582/"}