CVE-2023-46604 — Vulnerability in activemq-openwire-legacy
Apache ActiveMQ is vulnerable to Remote Code Execution
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected org.apache.activemq:activemq-openwire-legacy version?
Paste your pom.xml to check it for CVE-2023-46604 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Apache ActiveMQ is vulnerable to Remote Code Execution.The vulnerability may allow a remote attacker with network access to a broker to run arbitrary shell commands by manipulating serialized class types in the OpenWire protocol to cause the broker to instantiate any class on the classpath.
Users are recommended to upgrade to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3, which fixes this issue.
Advisory Timeline
- First published October 27, 2023 (1126 days ago).
- Last revised November 4, 2025 — 738 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 5 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.15.16 for org.apache.activemq:activemq-openwire-legacy -->
<!-- Update pom.xml dependency version to 5.17.6 for org.apache.activemq:activemq-openwire-legacy -->
<!-- Update pom.xml dependency version to 5.15.16 for org.apache.activemq:activemq-client -->
<!-- Update pom.xml dependency version to 5.18.3 for org.apache.activemq:activemq-client -->
<!-- Update pom.xml dependency version to 5.16.7 for org.apache.activemq:activemq-client -->
<!-- Update pom.xml dependency version to 5.16.7 for org.apache.activemq:activemq-openwire-legacy -->
<!-- Update pom.xml dependency version to 5.17.6 for org.apache.activemq:activemq-client -->
<!-- Update pom.xml dependency version to 5.18.3 for org.apache.activemq:activemq-openwire-legacy -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 1 ecosystem: Maven (2).
| Package | Fixed In |
|---|---|
| org.apache.activemq:activemq-openwire-legacy Maven · Affected: 5.10.0, 5.10.1, 5.10.2, 5.11.0 (+39 more) | 5.15.16 |
| org.apache.activemq:activemq-openwire-legacy Maven · Affected: 5.17.0, 5.17.1, 5.17.2, 5.17.3 (+2 more) | 5.17.6 |
| org.apache.activemq:activemq-client Maven · Affected: 5.10.0, 5.10.1, 5.10.2, 5.11.0 (+39 more) | 5.15.16 |
| org.apache.activemq:activemq-client Maven · Affected: 5.18.0, 5.18.1, 5.18.2 | 5.18.3 |
| org.apache.activemq:activemq-client Maven · Affected: 5.16.0, 5.16.1, 5.16.2, 5.16.3 (+3 more) | 5.16.7 |
| org.apache.activemq:activemq-openwire-legacy Maven · Affected: 5.16.0, 5.16.1, 5.16.2, 5.16.3 (+3 more) | 5.16.7 |
| org.apache.activemq:activemq-client Maven · Affected: 5.17.0, 5.17.1, 5.17.2, 5.17.3 (+2 more) | 5.17.6 |
| org.apache.activemq:activemq-openwire-legacy Maven · Affected: 5.18.0, 5.18.1, 5.18.2 | 5.18.3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-502Deserialization of Untrusted DataMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 10.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-46604ADVISORY
- https://github.com/apache/activemq/pull/1098WEB
- https://github.com/apache/activemq/commit/22442b2385b1000312aec3d19e510131d595a5fcWEB
- https://github.com/apache/activemq/commit/80089f9f476afab7d976f5fc37c5ab4aa0c2139dWEB
- https://github.com/apache/activemq/commit/958330df26cf3d5cdb63905dc2c6882e98781d8fWEB
- https://github.com/apache/activemq/commit/9905e2a5bf9862a049f94ce0a2465b0c7ad52436WEB
- https://github.com/apache/activemq/commit/d0ccdd31544ada83185554c87c7aa141064020f0WEB
- https://www.openwall.com/lists/oss-security/2023/10/27/5WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-46604WEB
- https://security.netapp.com/advisory/ntap-20231110-0010WEB
- https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.htmlWEB
- https://lists.debian.org/debian-lts-announce/2024/10/msg00027.htmlWEB
- https://lists.debian.org/debian-lts-announce/2023/11/msg00013.htmlWEB
- https://issues.apache.org/jira/browse/AMQ-9370WEB
- https://github.com/apache/activemqPACKAGE
- https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txtWEB
- https://activemq.apache.org/security-advisories.data/CVE-2023-46604WEB
- https://seclists.org/fulldisclosure/2024/Apr/18WEB
Frequently Asked Questions
- What is CVE-2023-46604?
- Apache ActiveMQ is vulnerable to Remote Code Execution. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 10.0/10).
- How do I check if my project is affected by CVE-2023-46604?
- CVE-2023-46604 affects org.apache.activemq:activemq-openwire-legacy and org.apache.activemq:activemq-client. It has a 89.3% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-46604 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 99.9% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: November 2, 2023
Remediation deadline: November 23, 2023
Also Known As
Related CVEs
- CVE-2014-3600CRITICAL
Improper Restriction of XML External Entity Reference in Apache ActiveMQ
- CVE-2015-5254CRITICAL
Improper Input Validation in Apache ActiveMQ
- CVE-2026-39304HIGH
Apache ActiveMQ: Denial of Service via Out of Memory vulnerability
- CVE-2026-53917HIGH
Apache ActiveMQ, Apache ActiveMQ All, Apache ActiveMQ Client, Apache ActiveMQ Broker have Memory Allocation with Excessive Size Value vulnerability
- CVE-2026-42588HIGH
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue
- CVE-2026-41044HIGH
Apache ActiveMQ Vulnerable to Code Injection
- CVE-2026-45505HIGH
Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ have a Code Injection issue
- CVE-2025-27533MEDIUM
Apache ActiveMQ: Unchecked buffer length can cause excessive memory allocation