ActiveMQ CVE-2023-46604 Detect
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Detects open ActiveMQ OpenWire port (ClassPathXmlApplicationContext chain)."""
import socket
from kittysploit import *
from lib.protocols.tcp.tcp_scanner_client import Tcp_scanner_client
class Module(Scanner, Tcp_scanner_client):
__info__ = {
"name": "ActiveMQ CVE-2023-46604 Detect",
"description": "Detects open ActiveMQ OpenWire port (ClassPathXmlApplicationContext chain).",
"author": ["KittySploit Team"],
"severity": "critical",
"cve": ["CVE-2023-46604"],
"tags": ["scanner", "tcp", "activemq", "cve-2023-46604"],
"references": ["https://nvd.nist.gov/vuln/detail/CVE-2023-46604"],
"agent": {
"risk": "active",
"effects": ["network_probe"],
"expected_requests": 1,
"reversible": True,
"approval_required": False,
"produces": ["tech_hints", "risk_signals"],
"chain": {
"suggested_followups": ["exploits/multi/tcp/activemq_cve_2023_46604_rce"],
},
},
}
port = OptPort(61616, "Target port", required=False)
def run(self):
host = str(self.target or "")
port = int(self.port or 61616)
try:
with socket.create_connection((host, port), timeout=8) as sock:
pass
except OSError:
return False
self.set_info(severity="critical", cve="CVE-2023-46604", reason=f"OpenWire TCP/{port} open", confidence="low")
return True
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
26 Oct 2026 17:01Current
7.9High risk
Vulners AI Score7.9
CVSS 3.19.8 - 10
EPSS0.99891
SSVC