{"cve":"CVE-2026-40466","nvd":{"published":"2026-04-24T11:16:22.540","modified":"2026-10-26T22:10:00.163","status":"Modified","description":"Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ.\n\n\n\nAn 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.\nA 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.\nBecause 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().\n\n\nThis 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.\n\nUsers are recommended to upgrade to version 5.19.6 or 6.2.5, which fixes the issue.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8},"cwes":["CWE-20","CWE-94"],"references":["https://activemq.apache.org/security-advisories.data/CVE-2026-34197-announcement.txt","https://access.redhat.com/security/cve/CVE-2026-40466","https://bugzilla.redhat.com/show_bug.cgi?id=2461410","https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40466.json"],"products":["apache:activemq","apache:activemq_broker"],"source":"nvd","synced_at":"2026-10-26T22:26:44.656832877+00:00"},"epss":{"cve":"CVE-2026-40466","score":0.04783,"percentile":0.91867,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-w3w2-mpp5-92gm","url":"https://osv.dev/vulnerability/GHSA-w3w2-mpp5-92gm","summary":"Apache ActiveMQ Vulnerable to Improper Input Validation and Code Injection","modified":"2026-09-10T03:51:03.715605423Z","packages":[{"ecosystem":"Maven","name":"org.apache.activemq:apache-activemq","purl":"pkg:maven/org.apache.activemq/apache-activemq","ranges":["<5.19.6"],"fixed":["5.19.6"]},{"ecosystem":"Maven","name":"org.apache.activemq:activemq-all","purl":"pkg:maven/org.apache.activemq/activemq-all","ranges":["<5.19.6"],"fixed":["5.19.6"]},{"ecosystem":"Maven","name":"org.apache.activemq:activemq-broker","purl":"pkg:maven/org.apache.activemq/activemq-broker","ranges":["<5.19.6"],"fixed":["5.19.6"]},{"ecosystem":"Maven","name":"org.apache.activemq:apache-activemq","purl":"pkg:maven/org.apache.activemq/apache-activemq","ranges":[">=6.0.0 <6.2.5"],"fixed":["6.2.5"]},{"ecosystem":"Maven","name":"org.apache.activemq:activemq-all","purl":"pkg:maven/org.apache.activemq/activemq-all","ranges":[">=6.0.0 <6.2.5"],"fixed":["6.2.5"]},{"ecosystem":"Maven","name":"org.apache.activemq:activemq-broker","purl":"pkg:maven/org.apache.activemq/activemq-broker","ranges":[">=6.0.0 <6.2.5"],"fixed":["6.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}