cbcvebase.
CVE-2023-46604
published 2023-10-27

CVE-2023-46604: The Java OpenWire protocol marshaller is vulnerable to Remote Code Execution. This vulnerability may allow a remote attacker with network access to either a…

PriorityP1100critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
KEVITWEXPLOITRansomwareInitial access
CISA Known Exploited Vulnerabilitydue 2023-11-23
Exploited in the wild
EPSS
99.65%
99.9th percentile
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

27 ranges· showing 25
VendorProductVersion rangeFixed in
apacheactivemq< 5.15.165.15.16
apacheactivemq>= 0 < 5.16.1-1+deb11u15.16.1-1+deb11u1
apacheactivemq>= 0 < 5.17.2+dfsg-2+deb12u15.17.2+dfsg-2+deb12u1
apacheactivemq>= 0 < 5.17.6+dfsg-15.17.6+dfsg-1
apacheactivemq>= 0 < 5.16.1-1ubuntu0.15.16.1-1ubuntu0.1
apacheactivemq>= 0 < 5.13.2+dfsg-2ubuntu0.1~esm15.13.2+dfsg-2ubuntu0.1~esm1
apacheactivemq>= 0 < 5.15.8-2~18.04.1~esm15.15.8-2~18.04.1~esm1
apacheactivemq>= 0 < 5.15.11-1ubuntu0.1~esm15.15.11-1ubuntu0.1~esm1
apacheactivemq>= 0 < 5.16.1-1ubuntu0.1~esm15.16.1-1ubuntu0.1~esm1
apacheactivemq>= 5.16.0 < 5.16.75.16.7
apacheactivemq>= 5.17.0 < 5.17.65.17.6
apacheactivemq>= 5.18.0 < 5.18.35.18.3
apacheactivemq_legacy_openwire_module< 5.15.165.15.16
apacheactivemq_legacy_openwire_module>= 5.16.0 < 5.16.75.16.7
apacheactivemq_legacy_openwire_module>= 5.17.0 < 5.17.65.17.6
apacheactivemq_legacy_openwire_module>= 5.18.0 < 5.18.35.18.3
apache_software_foundationapache_activemq< 5.15.165.15.16
apache_software_foundationapache_activemq>= 5.16.0 < 5.16.75.16.7
apache_software_foundationapache_activemq>= 5.17.0 < 5.17.65.17.6
apache_software_foundationapache_activemq>= 5.18.0 < 5.18.35.18.3
apache_software_foundationapache_activemq_legacy_openwire_module>= 5.16.0 < 5.16.75.16.7
apache_software_foundationapache_activemq_legacy_openwire_module>= 5.17.0 < 5.17.65.17.6
apache_software_foundationapache_activemq_legacy_openwire_module>= 5.18.0 < 5.18.35.18.3
apache_software_foundationapache_activemq_legacy_openwire_module>= 5.8.0 < 5.15.165.15.16
debianactivemq< activemq 5.17.2+dfsg-2+deb12u1 (bookworm)activemq 5.17.2+dfsg-2+deb12u1 (bookworm)

Detection & IOCsextracted from sources · hover to see the quote

hashd8f55bbbcc20e81e46b9bf78f93b73f002c76a8fcdb4dc2ae21b8609445c14f9
hash1bf1efeadedf52c0ed50941b10a2f468
hasha7bee104bb486ad0f10331233cc9a9f1
hash0dc2c71ce9c6c34668e9636abf61b1ae
hashda753ebcfe793614129fc11890acedbc
hashb3039abf2ad5202f4a9363b418002351
hashccef46c7edf9131ccffc47bd69eb743b
ip89.208.104.175
ip47.97.113.36
ip176.65.137.203
ip185.156.72.96
ip80.64.18.161
ip207.231.109.252
ip104.21.32.1
domainsoftwareshop.win
filenamelibsystem.so
hash01e5b2530d4cba34f91c8090d19c92db
processschtasks /create ... /tn "Update service for Windows Service"
yara
rule JAVA_ClassPathXmlApplicationContext_CVE_2023_46604_A{meta:author = "Peter Girnus"description = "Detects exploit variant used by Kinsing Malware for CVE-2023-46604 ClassPathXmlApplicationContext."cve = "CVE-2023-46604"hash = "d8f55bbbcc20e81e46b9bf78f93b73f002c76a8fcdb4dc2ae21b8609445c14f9"strings:$s1 = ""$r1 = /\bclass=["']java\.lang\.ProcessBuilder["']/ nocase$r2 = /[^<]+\.(exe|vbs|bat|ps1|psm|sh)/ nocasecondition:all of them}
  • Monitor for writes to /etc/ld.so.preload as a post-exploitation persistence/rootkit indicator following ActiveMQ exploitation.
  • Detect cron entries that download and execute a remote shell script every minute — a persistence mechanism used by Kinsing post-exploitation of CVE-2023-46604.
  • Alert on ActiveMQ broker logs containing the internal transport protocol 'VM' combined with the 'brokerConfig=xbean:http://' query parameter, which indicates active exploitation attempts.
  • The exploit leverages the ProcessBuilder method via OpenWire protocol manipulation. Detect network traffic to ActiveMQ (default port 61616) that contains serialized OpenWire commands referencing ClassPathXmlApplicationContext or ProcessBuilder class types.
  • Monitor for the scheduled task name 'Update service for Windows Service' created via schtasks, which is used by the H2Miner/Kinsing XMRig dropper (1.ps1) for persistence on Windows systems.
  • The HelloKitty ransomware group has also been observed exploiting CVE-2023-46604 to deploy ransomware. Detections should cover both cryptominer and ransomware post-exploitation payloads.
  • ·The YARA rule's $s1 string value appears to be empty/truncated in the source document — the actual string content is not visible in the published text and should be verified against the original rule before deployment.
  • ·The Kinsing aarch64 sample (da753ebcfe793614129fc11890acedbc) is specifically attributed to CVE-2023-46604 Apache ActiveMQ attacks in 2023, while other Kinsing hashes in the same table are linked to different CVEs (Log4j, Openfire) and should not be attributed solely to CVE-2023-46604.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
osv9.8CRITICAL
vulncheck10.0CRITICAL
cisa9.8CRITICAL
vendor_debian10.0CRITICAL
vendor_redhat10.0CRITICAL
vendor_oracle9.8CRITICAL
vendor_ubuntu8.8HIGH
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.