CVEs / CVE-2023-46604
CVE-2023-46604: Apache ActiveMQ Deserialization of Untrusted Data Vulnerability
- Known exploited in the CISA KEV catalog since 2 Nov 2023
- critical 9.8 CVSS 3.1 (NVD)
- EPSS 99.9% chance of exploitation in the next 30 days, higher than 99% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2023-46604
Summary
Apache ActiveMQ contains a deserialization of untrusted data vulnerability that may allow a remote attacker with network access to a broker to run shell commands by manipulating serialized class types in the OpenWire protocol to cause the broker to instantiate any class on the classpath.
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
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache ActiveMQ | from 5.18.0, before 5.18.3 | 5.18.3 |
| Apache Software Foundation Apache ActiveMQ | from 5.17.0, before 5.17.6 | 5.17.6 |
| Apache Software Foundation Apache ActiveMQ | from 5.16.0, before 5.16.7 | 5.16.7 |
| Apache Software Foundation Apache ActiveMQ | before 5.15.16 | 5.15.16 |
| Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module | from 5.18.0, before 5.18.3 | 5.18.3 |
| Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module | from 5.17.0, before 5.17.6 | 5.17.6 |
| Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module | from 5.16.0, before 5.16.7 | 5.16.7 |
| Apache Software Foundation Apache ActiveMQ Legacy OpenWire Module | from 5.8.0, before 5.15.16 | 5.15.16 |
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.activemq:activemq-client (Maven) | before 5.15.16 | 5.15.16 |
| org.apache.activemq:activemq-client (Maven) | from 5.16.0, before 5.16.7 | 5.16.7 |
| org.apache.activemq:activemq-client (Maven) | from 5.17.0, before 5.17.6 | 5.17.6 |
| org.apache.activemq:activemq-client (Maven) | from 5.18.0, before 5.18.3 | 5.18.3 |
| org.apache.activemq:activemq-openwire-legacy (Maven) | from 5.8.0, before 5.15.16 | 5.15.16 |
| org.apache.activemq:activemq-openwire-legacy (Maven) | from 5.16.0, before 5.16.7 | 5.16.7 |
| org.apache.activemq:activemq-openwire-legacy (Maven) | from 5.17.0, before 5.17.6 | 5.17.6 |
| org.apache.activemq:activemq-openwire-legacy (Maven) | from 5.18.0, before 5.18.3 | 5.18.3 |
Package versions from GHSA-crg9-44h2-xw35.
Exploitation
| In CISA KEV since | 2 Nov 2023 |
|---|---|
| Due date for US federal agencies | 23 Nov 2023 |
| Used in ransomware campaigns | Known |
| Required action | Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-502 |
References
- CVE-2023-46604 on NVD
- CVE-2023-46604 in the CISA KEV catalog
- https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt (cited by CISA)
- CVE-2023-46604 on OSV
- http://seclists.org/fulldisclosure/2024/Apr/18 Mailing List, Third Party Advisory
- https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/11/msg00013.html Mailing List
- https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html Exploit, Third Party Advisory, VDB Entry
- https://security.netapp.com/advisory/ntap-20231110-0010/ Third Party Advisory
- https://www.openwall.com/lists/oss-security/2023/10/27/5 Mailing List
- https://lists.debian.org/debian-lts-announce/2024/10/msg00027.html Mailing List
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-46604 Third Party Advisory, US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.