Apache ActiveMQ, Apache ActiveMQ Legacy OpenWire Module: Unbounded deserialization causes ActiveMQ to be vulnerable to a remote code execution (RCE) attack
Published Oct 27, 2023 ·Due Nov 23, 2023
10.0
CRITICALCVSS 3.1
EPSS 99.89%
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 products
-
Affected
- ≥ 0, < 5.15.16
- ≥ 5.16.0, < 5.16.7
- ≥ 5.17.0, < 5.17.6
- ≥ 5.18.0, < 5.18.3
-
Affected
- ≥ 5.16.0, < 5.16.7
- ≥ 5.17.0, < 5.17.6
- ≥ 5.18.0, < 5.18.3
- ≥ 5.8.0, < 5.15.16
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| Apache Software Foundation | Apache ActiveMQ | unaffected | Affected
|
| Apache Software Foundation | Apache ActiveMQ Legacy OpenWire Module | unaffected | Affected
|
Configuration 1
Configuration 2
- < 5.15.16
- ≥ 5.16.0 · < 5.16.7
- ≥ 5.17.0 · < 5.17.6
- ≥ 5.18.0 · < 5.18.3
Configuration 3
- 10.0
- 11.0
Configuration 4
- n/a
- n/a
- n/a
No data.
AMQ 6.3 openshift container image
n/a
Fixed · RHSA-2023:6877
AMQ Broker 7.10.5
n/a
Fixed · RHSA-2023:6878
AMQ Broker 7.11.4
activemq-openwire
Fixed · RHSA-2023:6879
RHEL-7 based Middleware Containers
jboss-amq-6/amq63-openshift:1.4-50
Fixed · RHSA-2023:6866
Red Hat Fuse 7.12.1
activemq-openwire
Fixed · RHSA-2023:7247
Red Hat Fuse/AMQ 6.3.20
activemq-openwire
Fixed · RHSA-2023:6849
Red Hat JBoss Fuse Service Works 6
activemq-openwire
Out of support scope
| Product | Package | State | Advisory |
|---|---|---|---|
| AMQ 6.3 openshift container image | n/a | Fixed | RHSA-2023:6877 |
| AMQ Broker 7.10.5 | n/a | Fixed | RHSA-2023:6878 |
| AMQ Broker 7.11.4 | activemq-openwire | Fixed | RHSA-2023:6879 |
| RHEL-7 based Middleware Containers | jboss-amq-6/amq63-openshift:1.4-50 | Fixed | RHSA-2023:6866 |
| Red Hat Fuse 7.12.1 | activemq-openwire | Fixed | RHSA-2023:7247 |
| Red Hat Fuse/AMQ 6.3.20 | activemq-openwire | Fixed | RHSA-2023:6849 |
| Red Hat JBoss Fuse Service Works 6 | activemq-openwire | Out of support scope | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
If the openwire protocol IS NOT in use, system operators can disable the OpenWire protocol which removes most risk of this vulnerability being exploited. If OpenWire IS being used, see the Mitigations section for potential options to reduce your attack surface. * How to determine if an AMQ 7 system is affected: Check in the broker.xml configuration file. Notice the presence of **OPENWIRE** in the following snippet which indicates a vulnerable configuration. ~~~ <acceptor name="artemis">tcp://localhost:####?tcpSendBufferSize=1048576;tcpReceiveBufferSize=1048576;protocols=CORE,AMQP,STOMP,HORNETQ,MQTT,**OPENWIRE**;useEpoll=true;amqpCredits=1000;amqpLowCredits=300;anycastPrefix=jms.queue.;multicastPrefix=jms.topic.</acceptor> ~~~ * How to determine if an AMQ 7 for OpenShift system is affected: Get the `ActivemqArtemis` CR yaml and review the acceptor protocol and see if the following entry is present: `(default, all, Openwire)` which indicates the system is vulnerable. * How to determine if a Fuse 6 system is affected: By default Fuse 6 includes and enables ActiveMQ Broker. So unless this has been manually disabled, every Fuse 6 system is affected by this vulnerability. * How to determine if a Fuse 7 system is affected: Fuse 7 itself is not vulnerable. By default it ships the vulnerable activemq-client jar, however it does not instantiate an ActiveMQ broker. If this feature (connect to an external ActiveMQ Broker) were manually configured, it would make it vulnerable. * How to determine if a Fuse Online system is affected: Syndesis, an Integration Platform As A Service part of Fuse Online which runs on top of Openshift, does not use activemq code. Also, it doesn't instantiate a broker with Openwire protocol enabled, which makes it not vulnerable to this CVE.
Red Hat mitigation
In affected systems, it may be possible to mitigate some of the risks from this vulnerability. However this mitigation cannot eliminate all risks; the only complete resolution is to apply software updates. On systems where the broker is exposed to the public network, use firewall rules to restrict the transport ports and enable SSL to protect this "Transport".
References (26)
- http://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html
- http://seclists.org/fulldisclosure/2024/Apr/18 Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2023/10/27/5
- https://access.redhat.com/security/cve/CVE-2023-46604 Vendor Advisory
- https://activemq.apache.org/security-advisories.data/CVE-2023-46604
- https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt vendor-advisoryVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2246645 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-2719 Advisory
- https://github.com/advisories/GHSA-crg9-44h2-xw35 Advisory
- https://github.com/apache/activemq/commit/22442b2385b1000312aec3d19e510131d595a5fc
- https://github.com/apache/activemq/commit/80089f9f476afab7d976f5fc37c5ab4aa0c2139d
- https://github.com/apache/activemq/commit/958330df26cf3d5cdb63905dc2c6882e98781d8f
- https://github.com/apache/activemq/commit/9905e2a5bf9862a049f94ce0a2465b0c7ad52436
- https://github.com/apache/activemq/commit/d0ccdd31544ada83185554c87c7aa141064020f0
- https://github.com/apache/activemq/pull/1098
- https://issues.apache.org/jira/browse/AMQ-9370
- https://lists.apache.org/thread/y1ztwb3gktny47mj9sdv2sbw49nkgsgp
- https://lists.debian.org/debian-lts-announce/2023/11/msg00013.html Mailing List
- https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html Mailing List
- https://nvd.nist.gov/vuln/detail/CVE-2023-46604
- https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
- https://security.netapp.com/advisory/ntap-20231110-0010 Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-46604 government-resourceThird Party AdvisoryUS Government Resource
- https://www.cve.org/CVERecord?id=CVE-2023-46604
- https://www.openwall.com/lists/oss-security/2023/10/27/5 Mailing List
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
ENISA EUVD
GitHub