SecurityContext

CVE-2026-40466: Apache ActiveMQ Broker - Remote Code Execution

  • Cve: CVE-2026-40466
  • Name: Apache ActiveMQ Broker - Remote Code Execution
  • Description: 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.
  • Impact: Authenticated attackers can execute arbitrary code on the broker JVM, potentially leading to full system compromise.
  • Remediation: Upgrade to versions 5.19.6 or 6.2.5 or later.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must be authenticated and activemq-http module must be on classpath.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.04783
  • Epss percentile: 0.92146
  • Assignee: [email protected]
  • Published at: 2026-04-24T11:16:22Z
  • Age in days: 214
  • Modified at: 2026-10-26T22:10:00Z
  • Patch available: yes
  • References total: 6
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-40466
  • Nvd status: modified
  • Checked, none or zero: public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-20Improper Input Validation
CWE-94Improper Control of Generation of Code

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2026-05-07—no

Nuclei templates

IdUrl
CVE-2026-40466https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40466.yaml

References

UrlSourceTags
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-40466.yamlnuclei_templateNuclei Template
https://api.vulncheck.com/v3/index/vulncheck-canaries?cve=CVE-2026-40466vulncheckVulncheck Reported Exploitation
https://www.linkedin.com/feed/update/urn:li:activity:7458251406555348992/vulncheckVulncheck Reported Exploitation
https://access.redhat.com/security/cve/CVE-2026-40466nvd
https://bugzilla.redhat.com/show_bug.cgi?id=2461410nvd
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.jsonnvd

Products

ProductAffectedPlatform boundSourcesUrl
apache:activemq>= 6.0.0, < 6.2.5; < 5.19.6nonvd/v1/products/apache/activemq
apache:activemq_broker>= 6.0.0, < 6.2.5; < 5.19.6nonvd/v1/products/apache/activemq_broker

Projects

RepositoryLink kindsIndexedUrl
apache/activemqpackageyes/v1/repositories/apache/activemq

Index

  • Repositories: 36
  • Repositories high signal: 16
  • Packages: 3

Exploitation

  • Known exploited by: vulncheck
  • Vulncheck known exploited since: 2026-05-07
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 3590
  • Checked, none or zero: known exploited, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, public exploit first date, initial access since, hackerone reports

Nuclei template