{"answers":{"affected":"17 open source packages ship an affected version, including org.apache.activemq:activemq-client, activemq and org.apache.activemq:activemq-openwire-legacy. It affects 6 products.","exploited":"Yes. Attackers have exploited CVE-2023-46604 in the wild since at least 2 Nov 2023, including in ransomware campaigns.","fix":"Upgrade org.apache.activemq:activemq-client to a fixed version for your release line: 5.15.16, 5.16.7, 5.17.6 or 5.18.3. US federal agencies must fix it by 23 Nov 2023.","what":"CVE-2023-46604 is a critical unsafe deserialization vulnerability in Apache Activemq, published on 27 Oct 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-46604 and fix it if it is affected.\n\nWhat it is: CVE-2023-46604 is a critical unsafe deserialization vulnerability in Apache Activemq, published on 27 Oct 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-46604 in the wild since at least 2 Nov 2023, including in ransomware campaigns.\n\nAffected packages and fixed versions:\n- org.apache.activemq:activemq-client (Maven): affected all versions; fixed in 5.15.16\n- org.apache.activemq:activemq-client (Maven): affected all versions; fixed in 5.15.16\n- org.apache.activemq:activemq-client (Maven): affected from 5.16.0; fixed in 5.16.7\n- org.apache.activemq:activemq-client (Maven): affected from 5.16.0; fixed in 5.16.7\n- org.apache.activemq:activemq-client (Maven): affected from 5.17.0; fixed in 5.17.6\n- org.apache.activemq:activemq-client (Maven): affected from 5.17.0; fixed in 5.17.6\n- org.apache.activemq:activemq-client (Maven): affected from 5.18.0; fixed in 5.18.3\n- org.apache.activemq:activemq-client (Maven): affected from 5.18.0; fixed in 5.18.3\n- activemq (Bitnami): affected all versions; fixed in 5.15.16, 5.16.7, 5.17.6, 5.18.3\n- org.apache.activemq:activemq-openwire-legacy (Maven): affected from 5.16.0; fixed in 5.16.7\n- org.apache.activemq:activemq-openwire-legacy (Maven): affected from 5.16.0; fixed in 5.16.7\n- org.apache.activemq:activemq-openwire-legacy (Maven): affected from 5.17.0; fixed in 5.17.6\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-46604/ (Markdown: https://insights.sbomify.com/CVE-2023-46604/index.md)","id":"CVE-2023-46604","markdown":"https://insights.sbomify.com/CVE-2023-46604/index.md","name":"CVE-2023-46604","record":{"aliases":["BIT-activemq-2023-46604","DEBIAN-CVE-2023-46604","GHSA-crg9-44h2-xw35","OESA-2023-1778","ROOT-APP-MAVEN-CVE-2023-46604","UBUNTU-CVE-2023-46604"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Apache ActiveMQ","requires_auth":"none","summary":"Remote attackers can execute arbitrary code on Apache ActiveMQ brokers or clients by manipulating serialized class types in the OpenWire protocol.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"apache","cpe":[{"product":"activemq","vendor":"apache"},{"product":"activemq_legacy_openwire_module","vendor":"apache"},{"product":"debian_linux","vendor":"debian"},{"product":"e-series_santricity_unified_manager","vendor":"netapp"},{"product":"e-series_santricity_web_services_proxy","vendor":"netapp"},{"product":"santricity_storage_plugin","vendor":"netapp"}],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"The Java OpenWire protocol marshaller is vulnerable to Remote Code \nExecution. This vulnerability may allow a remote attacker with network \naccess to either a Java-based OpenWire broker or client to run arbitrary\n shell commands by manipulating serialized class types in the OpenWire \nprotocol to cause either the client or the broker (respectively) to \ninstantiate any class on the classpath.\n\nUsers are recommended to upgrade\n both brokers and clients to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3 \nwhich fixes this issue.","ecosystems":["Bitnami","Maven"],"exploits":{"exploitdb":0,"first_seen":"2023-10-26","github_poc":42,"max_poc_stars":126,"metasploit":1,"nuclei":1,"refs":[{"date":"2023-11-03T22:06:09Z","kind":"github_poc","ref":"https://github.com/SaumyajeetDas/CVE-2023-46604-RCE-Reverse-Shell-Apache-ActiveMQ","stars":126,"title":" Achieving a Reverse Shell Exploit for Apache ActiveMQ (CVE_2023-46604) "},{"date":"2026-04-20T02:38:50Z","kind":"github_poc","ref":"https://github.com/Catherines77/ActiveMQ-EXPtools","stars":86,"title":"Apache ActiveMQ漏洞综合利用工具(CVE-2015-5254，CVE-2016-3088，CVE-2022-41678，CVE-2023-46604，CVE-2024-32114，CVE-2026-34197，CVE-2026-40466， CVE-2026-42588)"},{"date":"2024-03-05T07:09:21Z","kind":"github_poc","ref":"https://github.com/Arlenhiack/ActiveMQ-RCE-Exploit","stars":44,"title":"ActiveMQ RCE (CVE-2023-46604) 回显利用工具"},{"date":"2023-11-04T11:58:21Z","kind":"github_poc","ref":"https://github.com/evkl1d/CVE-2023-46604","stars":40,"title":null},{"date":"2023-10-26T03:25:05Z","kind":"github_poc","ref":"https://github.com/trganda/ActiveMQ-RCE","stars":28,"title":"CVE-2023-46604"},{"date":"2023-11-12T11:26:46Z","kind":"github_poc","ref":"https://github.com/duck-sec/CVE-2023-46604-ActiveMQ-RCE-pseudoshell","stars":19,"title":"This script leverages CVE-2023046604 (Apache ActiveMQ) to generate a pseudo shell. The vulnerability allows for remote code execution due to unsafe deserialization within the OpenWire protocol."},{"date":"2023-11-08T07:48:00Z","kind":"github_poc","ref":"https://github.com/justdoit-cai/CVE-2023-46604-Apache-ActiveMQ-RCE-exp","stars":5,"title":"CVE-2023-46604 Apache ActiveMQ RCE exp 基于python"},{"date":"2023-11-18T12:51:03Z","kind":"github_poc","ref":"https://github.com/NKeshawarz/CVE-2023-46604-RCE","stars":4,"title":null}],"tier":"exploited"},"has_fix":true,"headline":"Apache ActiveMQ Deserialization of Untrusted Data","id":"CVE-2023-46604","indexable":true,"kev":{"dateAdded":"2023-11-02","dueDate":"2023-11-23","knownRansomwareCampaignUse":"Known","product":"ActiveMQ","requiredAction":"Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.","vendorProject":"Apache","vulnerabilityName":"Apache ActiveMQ Deserialization of Untrusted Data Vulnerability"},"kind":"cve","links":{"ecosystem":"Bitnami","product":"apache:activemq","products":["apache:activemq","debian:debian_linux"],"type":"deserialization","year":"2023"},"n_packages":17,"n_references":6,"next":{"headline":"WordPress Convertful – Your Ultimate On-Site Conversion Tool plugin \u003c= 2.5 - Broken Access Control vulnerability","id":"CVE-2023-46605"},"packages":[{"ecosystem":"Bitnami","fixed":["5.15.16","5.16.7","5.17.6","5.18.3"],"introduced":["0","5.16.0","5.17.0","5.18.0"],"last_affected":[],"package":"activemq","purl":"pkg:bitnami/activemq","source":"BIT-activemq-2023-46604"},{"ecosystem":"Maven","fixed":["5.15.16"],"introduced":["0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.15.16"],"introduced":["0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":"pkg:maven/org.apache.activemq/activemq-client","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.16.7"],"introduced":["5.16.0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.16.7"],"introduced":["5.16.0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":"pkg:maven/org.apache.activemq/activemq-client","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.17.6"],"introduced":["5.17.0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.17.6"],"introduced":["5.17.0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":"pkg:maven/org.apache.activemq/activemq-client","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.18.3"],"introduced":["5.18.0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.18.3"],"introduced":["5.18.0"],"last_affected":[],"package":"org.apache.activemq:activemq-client","purl":"pkg:maven/org.apache.activemq/activemq-client","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.16.7"],"introduced":["5.16.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.16.7"],"introduced":["5.16.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":"pkg:maven/org.apache.activemq/activemq-openwire-legacy","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.17.6"],"introduced":["5.17.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.17.6"],"introduced":["5.17.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":"pkg:maven/org.apache.activemq/activemq-openwire-legacy","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.18.3"],"introduced":["5.18.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.18.3"],"introduced":["5.18.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":"pkg:maven/org.apache.activemq/activemq-openwire-legacy","source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.15.16"],"introduced":["5.8.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":null,"source":"GHSA-crg9-44h2-xw35"},{"ecosystem":"Maven","fixed":["5.15.16"],"introduced":["5.8.0"],"last_affected":[],"package":"org.apache.activemq:activemq-openwire-legacy","purl":"pkg:maven/org.apache.activemq/activemq-openwire-legacy","source":"GHSA-crg9-44h2-xw35"}],"prev":{"headline":"Memory corruption in n/a","id":"CVE-2023-46603"},"products":["Apache ActiveMQ","Apache ActiveMQ Legacy OpenWire Module"],"published":"2023-10-27","related":[{"cvss_score":9.8,"headline":"Apache ActiveMQ Improper Input Validation","id":"CVE-2016-3088","kev_date_added":"2022-02-10","published":"2016-06-01"},{"cvss_score":8.8,"headline":"Apache ActiveMQ Improper Input Validation","id":"CVE-2026-34197","kev_date_added":"2026-04-16","published":"2026-04-07"},{"cvss_score":9.8,"headline":"Remote code execution in Apache ActiveMQ","id":"CVE-2020-11998","kev_date_added":null,"published":"2020-09-10"},{"cvss_score":9.8,"headline":"Command Injection in Xstream","id":"CVE-2013-7285","kev_date_added":null,"published":"2019-05-15"},{"cvss_score":9.8,"headline":"Improper Restriction of XML External Entity Reference in Apache ActiveMQ","id":"CVE-2014-3600","kev_date_added":null,"published":"2017-10-27"},{"cvss_score":9.8,"headline":"Improper Input Validation in Apache ActiveMQ","id":"CVE-2015-5254","kev_date_added":null,"published":"2016-01-08"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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-11-03","vendors":["Apache Software Foundation"]},"summary":"Remote attackers can execute arbitrary code on Apache ActiveMQ brokers or clients by manipulating serialized class types in the OpenWire protocol.","url":"https://insights.sbomify.com/CVE-2023-46604/"}