cve.bz

CVE-2026-40466 apache: Code Injection

8.8 highEPSS 4.8%Fix available

High (8.8) in apache. EPSS 4.8% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.activemq:apache-activemq 5.19.6, 6.2.5.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
4.8% (unchanged from 4.8% a week ago; 4.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 92nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-04-24. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-20 Improper Input Validation
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

  • org.apache.activemq:apache-activemq (Maven): fixed in 5.19.6, 6.2.5
  • org.apache.activemq:activemq-all (Maven): fixed in 5.19.6, 6.2.5
  • org.apache.activemq:activemq-broker (Maven): fixed in 5.19.6, 6.2.5

Ask an AI about this CVE

Show the promptExplain CVE-2026-40466 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40466?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40466?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40466 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-40466

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-40466](https://cve.bz/cve/badge/CVE-2026-40466.svg)](https://cve.bz/cve/CVE-2026-40466)

HTML:

<a href="https://cve.bz/cve/CVE-2026-40466"><img src="https://cve.bz/cve/badge/CVE-2026-40466.svg" alt="CVE-2026-40466"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache ActiveMQ Brokerbefore 5.19.6
Apache Software Foundation Apache ActiveMQ Brokerfrom 6.0.0 before 6.2.5
Apache Software Foundation Apache ActiveMQ Allbefore 5.19.6
Apache Software Foundation Apache ActiveMQ Allfrom 6.0.0 before 6.2.5
Apache Software Foundation Apache ActiveMQbefore 5.19.6
Apache Software Foundation Apache ActiveMQfrom 6.0.0 before 6.2.5

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w3w2-mpp5-92gmMavenorg.apache.activemq:apache-activemq<5.19.65.19.6
GHSA-w3w2-mpp5-92gmMavenorg.apache.activemq:activemq-all<5.19.65.19.6
GHSA-w3w2-mpp5-92gmMavenorg.apache.activemq:activemq-broker<5.19.65.19.6
GHSA-w3w2-mpp5-92gmMavenorg.apache.activemq:apache-activemq>=6.0.0 <6.2.56.2.5
GHSA-w3w2-mpp5-92gmMavenorg.apache.activemq:activemq-all>=6.0.0 <6.2.56.2.5
GHSA-w3w2-mpp5-92gmMavenorg.apache.activemq:activemq-broker>=6.0.0 <6.2.56.2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13activemqno fix listedDEBIAN-CVE-2026-40466
Ubuntu24.04:LTS, 25.10, 26.04:LTS and 5 moreactivemqno fix listedUBUNTU-CVE-2026-40466

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7activemq-brokerNot affected
Red Hat Data Grid 8activemq-brokerNot affected
Red Hat Enterprise Linux 8log4j:2/log4jNot affected
Red Hat Enterprise Linux 9log4jNot affected
Red Hat Fuse 7activemq-allNot affected
Red Hat Fuse 7activemq-brokerNot affected
Red Hat JBoss Enterprise Application Platform 7activemq-brokerWill not fix
Red Hat JBoss Enterprise Application Platform 8activemq-brokerNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packactivemq-brokerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40466.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON