.. / CVE-2023-46604

Exploit for Apache ActiveMQ OpenWire transport unmarshaller - Remote Code Execution (CVE-2023-46604)

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.

Proof of Concept

PoC exploit

Try the exploit in a lab environment:

Lab Machine Link
Hack The Box Broker Go to Practice

References:

https://nvd.nist.gov/vuln/detail/CVE-2023-46604
https://packetstormsecurity.com/files/175676/Apache-ActiveMQ-Unauthenticated-Remote-Code-Execution.html
https://activemq.apache.org/security-advisories.data/CVE-2023-46604-announcement.txt
https://www.openwall.com/lists/oss-security/2023/10/27/5