---
id: CVE-2026-34197
title: >-
  Improper Input Validation, Improper Control of Generation of Code ('Code
  Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ.


  Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/
  on the web conso…
summary: >-
  Improper Input Validation, Improper Control of Generation of Code ('Code
  Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ.


  Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/
  on the web conso…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-20
  - CWE-94
  - CWE-78
vendor: apache
product: activemq
affected:
  - activemq < 5.19.4
  - 'activemq >= 6.0.0, < 6.2.3'
  - activemq_broker < 5.19.4
  - 'activemq_broker >= 6.0.0, < 6.2.3'
patched:
  - activemq 6.2.3
  - activemq_broker 6.2.3
published: '2026-04-07'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-34197'
references:
  - url: >-
      https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/04/06/3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/security/cve/CVE-2026-34197'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2455869'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34197.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-34197
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - kev
  - in-the-wild
  - exploit-available
epss: 0.15492
epssPercentile: 0.96692
kev: true
kevDateAdded: '2026-04-16'
kevDueDate: '2026-04-30'
kevRansomware: false
exploited: true
ingestedAt: '2026-07-01T03:50:34.551Z'
exploits:
  github: 16
  githubRepos:
    - 'https://github.com/0xBlackash/CVE-2026-34197'
    - 'https://github.com/dinosn/CVE-2026-34197'
    - 'https://github.com/DEVSECURITYSPRO/CVE-2026-34197'
  metasploit:
    - exploit/multi/http/apache_activemq_jolokia_rce
  nuclei:
    - CVE-2026-34197
  checkedAt: '2026-09-27T10:33:45.108Z'
exploitAvailable: true
---

## Overview

Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ.

Apache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ on the web console. The default Jolokia access policy permits exec operations on all ActiveMQ MBeans (org.apache.activemq:*), including
BrokerService.addNetworkConnector(String) and BrokerService.addConnector(String).

An authenticated attacker can invoke these operations with a crafted discovery URI that triggers 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.4, from 6.0.0 before 6.2.3; Apache ActiveMQ All: before 5.19.4, from 6.0.0 before 6.2.3; Apache ActiveMQ: before 5.19.4, from 6.0.0 before 6.2.3.



Users are recommended to upgrade to version 5.19.4 or 6.2.3, which fixes the issue

## Affected

- `activemq < 5.19.4`
- `activemq >= 6.0.0, < 6.2.3`
- `activemq_broker < 5.19.4`
- `activemq_broker >= 6.0.0, < 6.2.3`

## Remediation

Upgrade past the affected range:

- `activemq 6.2.3`
- `activemq_broker 6.2.3`
