# CVE-2023-46604: Apache ActiveMQ, Apache ActiveMQ Legacy OpenWire Module: Unbounded deserialization causes ActiveMQ to be vulnerable to a remote code execution (RCE) attack

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 10.0
- **CVSS:** 10.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Yes: in CISA KEV since 2023-11-02; federal due date 2023-11-23; known ransomware use
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 89.31% (percentile 100, 2026-11-26)
- **CWE:** CWE-502
- **Aliases:** BIT-activemq-2023-46604, GHSA-crg9-44h2-xw35
- **Published:** 2023-10-27T14:59:31.046Z
- **Modified:** 2026-06-17T06:31:11.370Z

## Who should check

- Projects that depend on Maven package org.apache.activemq:activemq-client (\< 5.15.16)
- Projects that depend on Maven package org.apache.activemq:activemq-openwire-legacy (\>= 5.8.0, \< 5.15.16)
- Anyone running Apache Software Foundation Apache ActiveMQ \>= 5.18.0, \< 5.18.3; \>= 5.17.0, \< 5.17.6; \>= 5.16.0, \< 5.16.7; \< 5.15.16
- Anyone running Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module \>= 5.18.0, \< 5.18.3; \>= 5.17.0, \< 5.17.6; \>= 5.16.0, \< 5.16.7; \>= 5.8.0, \< 5.15.16

## Description

The Java OpenWire protocol marshaller is vulnerable to Remote Code 
Execution. This vulnerability may allow a remote attacker with network 
access to either a Java-based OpenWire broker or client to run arbitrary
 shell commands by manipulating serialized class types in the OpenWire 
protocol to cause either the client or the broker (respectively) to 
instantiate any class on the classpath.

Users are recommended to upgrade
 both brokers and clients to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3 
which fixes this issue.

## Affected and fixed versions

- Maven `org.apache.activemq:activemq-client`: affected \< 5.15.16; fixed 5.15.16, 5.16.7, 5.17.6, 5.18.3 (osv)
- Maven `org.apache.activemq:activemq-openwire-legacy`: affected \>= 5.8.0, \< 5.15.16; fixed 5.15.16, 5.16.7, 5.17.6, 5.18.3 (osv)
- Apache Software Foundation Apache ActiveMQ: \>= 5.18.0, \< 5.18.3; \>= 5.17.0, \< 5.17.6; \>= 5.16.0, \< 5.16.7; \< 5.15.16 (cvelist)
- Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module: \>= 5.18.0, \< 5.18.3; \>= 5.17.0, \< 5.17.6; \>= 5.16.0, \< 5.16.7; \>= 5.8.0, \< 5.15.16 (cvelist)

## Mitigation

- Upgrade org.apache.activemq:activemq-client to one of 5.15.16, 5.16.7, 5.17.6, 5.18.3 (or later in the same release line).
- Upgrade org.apache.activemq:activemq-openwire-legacy to one of 5.15.16, 5.16.7, 5.17.6, 5.18.3 (or later in the same release line).

## Timeline

- 2023-10-27: Published
- 2023-11-02: Added to CISA KEV (exploited in the wild)
- 2023-11-23: CISA remediation due date for US federal agencies
- 2026-06-17: Last modified

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-46604. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-46604.md
Affected: org.apache.activemq:activemq-client < 5.15.16; org.apache.activemq:activemq-openwire-legacy >= 5.8.0, < 5.15.16
Fixed in: 5.15.16, 5.16.7, 5.17.6, 5.18.3

Steps:
1. Search this machine and project for org.apache.activemq:activemq-client (Maven), org.apache.activemq:activemq-openwire-legacy (Maven), Apache Software Foundation Apache ActiveMQ, Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-46604 being exploited?

Yes. CISA lists CVE-2023-46604 in its Known Exploited Vulnerabilities catalog since 2023-11-02, which means attacks have been seen. Public exploit code or a proof of concept is available. EPSS estimates a 89.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-46604?

Critical: CVSS 10.0 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2023-46604?

org.apache.activemq:activemq-client \< 5.15.16; org.apache.activemq:activemq-openwire-legacy \>= 5.8.0, \< 5.15.16.

### Is there a fix for CVE-2023-46604?

Yes. Fixed in 5.15.16, 5.16.7, 5.17.6, 5.18.3. Upgrade org.apache.activemq:activemq-client to one of 5.15.16, 5.16.7, 5.17.6, 5.18.3 (or later in the same release line). Upgrade org.apache.activemq:activemq-openwire-legacy to one of 5.15.16, 5.16.7, 5.17.6, 5.18.3 (or later in the same release line).

### How do I check if I'm affected by CVE-2023-46604?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2023-46604>
- patch: <https://github.com/apache/activemq/pull/1098>
- patch: <https://github.com/apache/activemq/commit/22442b2385b1000312aec3d19e510131d595a5fc>
- patch: <https://github.com/apache/activemq/commit/80089f9f476afab7d976f5fc37c5ab4aa0c2139d>
- patch: <https://github.com/apache/activemq/commit/958330df26cf3d5cdb63905dc2c6882e98781d8f>
- patch: <https://github.com/apache/activemq/commit/9905e2a5bf9862a049f94ce0a2465b0c7ad52436>
- patch: <https://github.com/apache/activemq/commit/d0ccdd31544ada83185554c87c7aa141064020f0>
- exploit: <https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html>
- exploit: <http://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html>
- other: <https://www.openwall.com/lists/oss-security/2023/10/27/5>
- other: <https://security.netapp.com/advisory/ntap-20231110-0010/>
- other: <https://lists.debian.org/debian-lts-announce/2023/11/msg00013.html>
- other: <http://seclists.org/fulldisclosure/2024/Apr/18>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html>
- other: <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-46604>
- other: <https://security.netapp.com/advisory/ntap-20231110-0010>
- other: <https://issues.apache.org/jira/browse/AMQ-9370>
- other: <https://github.com/apache/activemq>
- other: <https://activemq.apache.org/security-advisories.data/CVE-2023-46604>
- other: <http://www.openwall.com/lists/oss-security/2023/10/27/5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-46604>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-crg9-44h2-xw35> (license: <https://creativecommons.org/licenses/by/4.0/>)
- CISA KEV: CISA Known Exploited Vulnerabilities Catalog <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>

HTML: <https://flawdb.com/CVE-2023-46604> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-46604>
