{"answers":{"affected":"8 open source packages ship an affected version, including org.apache.rocketmq:rocketmq-namesrv, org.apache.rocketmq:rocketmq-broker and org.apache.rocketmq:rocketmq-controller. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2023-33246 in the wild since at least 6 Sep 2023.","fix":"Upgrade org.apache.rocketmq:rocketmq-namesrv to a fixed version for your release line: 4.9.6 or 5.1.1. US federal agencies must fix it by 27 Sep 2023.","what":"CVE-2023-33246 is a critical command injection vulnerability in Apache RocketMQ, published on 24 May 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-33246 and fix it if it is affected.\n\nWhat it is: CVE-2023-33246 is a critical command injection vulnerability in Apache RocketMQ, published on 24 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2023-33246 in the wild since at least 6 Sep 2023.\n\nAffected packages and fixed versions:\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected from 4.0.0; fixed in 4.9.6\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected from 4.0.0; fixed in 4.9.6\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected from 5.0.0; fixed in 5.1.1\n- org.apache.rocketmq:rocketmq-namesrv (Maven): affected from 5.0.0; fixed in 5.1.1\n- org.apache.rocketmq:rocketmq-broker (Maven): affected from 5.0.0; fixed in 5.1.1\n- org.apache.rocketmq:rocketmq-broker (Maven): affected from 5.0.0; fixed in 5.1.1\n- org.apache.rocketmq:rocketmq-controller (Maven): affected from 5.0.0; fixed in 5.1.1\n- org.apache.rocketmq:rocketmq-controller (Maven): affected from 5.0.0; fixed in 5.1.1\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-33246/ (Markdown: https://insights.sbomify.com/CVE-2023-33246/index.md)","id":"CVE-2023-33246","markdown":"https://insights.sbomify.com/CVE-2023-33246/index.md","name":"CVE-2023-33246","record":{"aliases":["GHSA-x3cq-8f32-5f63"],"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 servers if components are exposed without authentication, requiring an upgrade to secure versions.","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":"For RocketMQ versions 5.1.0 and below, under certain conditions, there is a risk of remote command execution. \n\nSeveral 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. \n\nTo 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 .","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-05-23","github_poc":13,"max_poc_stars":113,"metasploit":1,"nuclei":1,"refs":[{"date":"2023-06-01T06:27:09Z","kind":"github_poc","ref":"https://github.com/SuperZero/CVE-2023-33246","stars":113,"title":"Apache RocketMQ 远程代码执行漏洞(CVE-2023-33246) Exploit"},{"date":"2023-06-01T14:48:26Z","kind":"github_poc","ref":"https://github.com/Malayke/CVE-2023-33246_RocketMQ_RCE_EXPLOIT","stars":106,"title":"CVE-2023-33246 RocketMQ RCE Detect By Version and Exploit"},{"date":"2023-06-01T02:17:20Z","kind":"github_poc","ref":"https://github.com/Le1a/CVE-2023-33246","stars":81,"title":"Apache RocketMQ 远程代码执行漏洞(CVE-2023-33246) Exploit"},{"date":"2023-05-30T02:18:29Z","kind":"github_poc","ref":"https://github.com/I5N0rth/CVE-2023-33246","stars":62,"title":null},{"date":"2023-09-04T11:18:28Z","kind":"github_poc","ref":"https://github.com/vulncheck-oss/fetch-broker-conf","stars":5,"title":"A go-exploit for fetching the RocketMQ broker configuration in order to discover indicators of compromise for CVE-2023-33246"},{"date":"2023-05-31T07:28:46Z","kind":"github_poc","ref":"https://github.com/4mazing/CVE-2023-33246-Copy","stars":2,"title":null},{"date":"2023-06-02T01:41:12Z","kind":"github_poc","ref":"https://github.com/P4x1s/CVE-2023-33246","stars":2,"title":"CVE-2023-33246：Apache RocketMQ 远程命令执行漏洞检测工具"},{"date":"2023-10-28T07:08:19Z","kind":"github_poc","ref":"https://github.com/0xKayala/CVE-2023-33246","stars":2,"title":"CVE-2023-33246 - Apache RocketMQ config RCE"}],"tier":"exploited"},"has_fix":true,"headline":"Apache RocketMQ Command Execution","id":"CVE-2023-33246","indexable":true,"kev":{"dateAdded":"2023-09-06","dueDate":"2023-09-27","knownRansomwareCampaignUse":"Unknown","product":"RocketMQ","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"Apache","vulnerabilityName":"Apache RocketMQ Command Execution Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"command_injection","year":"2023"},"n_packages":8,"n_references":3,"next":{"headline":"File upload in n/a","id":"CVE-2023-33247"},"packages":[{"ecosystem":"Maven","fixed":["5.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-broker","purl":null,"source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["5.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-broker","purl":"pkg:maven/org.apache.rocketmq/rocketmq-broker","source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["5.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-controller","purl":null,"source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["5.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-controller","purl":"pkg:maven/org.apache.rocketmq/rocketmq-controller","source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["4.9.6"],"introduced":["4.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":null,"source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["4.9.6"],"introduced":["4.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":"pkg:maven/org.apache.rocketmq/rocketmq-namesrv","source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["5.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":null,"source":"GHSA-x3cq-8f32-5f63"},{"ecosystem":"Maven","fixed":["5.1.1"],"introduced":["5.0.0"],"last_affected":[],"package":"org.apache.rocketmq:rocketmq-namesrv","purl":"pkg:maven/org.apache.rocketmq/rocketmq-namesrv","source":"GHSA-x3cq-8f32-5f63"}],"prev":{"headline":"Path traversal in n/a","id":"CVE-2023-33245"},"products":["Apache RocketMQ"],"published":"2023-05-24","related":[{"cvss_score":9.8,"headline":"Apache RocketMQ: Possible remote code execution when using the update configuration function","id":"CVE-2023-37582","kev_date_added":null,"published":"2023-07-12"},{"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":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["Apache Software Foundation"]},"summary":"Attackers can execute arbitrary commands on Apache RocketMQ servers if components are exposed without authentication, requiring an upgrade to secure versions.","url":"https://insights.sbomify.com/CVE-2023-33246/"}