{"id":"CVE-2026-42588","published":"2026-06-01T07:23:17Z","modified":"2026-06-02T03:55:44Z","title":"Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ: Remote Code Execution via Jolokia addNetworkConnector","vendor":"Apache","product":"Apache ActiveMQ Broker","tier":"tail","description":{"text":"Improper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ.\n\nApache 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\nBrokerService.addNetworkConnector(String).\n\nAn authenticated attacker can invoke these operations with a crafted discovery URI that triggers the VM transport's brokerConfig parameter using the \"masterslave:// \" URL which can allow loading a 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().\nThis issue affects Apache ActiveMQ Broker: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ All: before 5.19.7, from 6.0.0 before 6.2.6; Apache ActiveMQ: before 5.19.7, from 6.0.0 before 6.2.6.\n\nUsers are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.0074,"percentile":0.54479,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://lists.apache.org/thread/ns0zktfo16s9ql2mmtqtlb6p6xcs45xm","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2026/05/31/18","tags":[]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":10.9},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2026-06-04","earliestUrl":"https://github.com/strivepan/ActiveMQ-cve-2026-42588-scanner-gui","repos":[{"name":"strivepan/ActiveMQ-cve-2026-42588-scanner-gui","url":"https://github.com/strivepan/ActiveMQ-cve-2026-42588-scanner-gui","stars":10,"created":"2026-06-04"},{"name":"gentleman567/POC","url":"https://github.com/gentleman567/POC","stars":0,"created":"2026-06-18"}]},"first":{"date":"2026-06-04","source":"PoC-in-GitHub","url":"https://github.com/strivepan/ActiveMQ-cve-2026-42588-scanner-gui"},"provenance":"source"},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache ActiveMQ Broker","versions":["< 5.19.7",">= 6.0.0, < 6.2.6"]},{"vendor":"Apache Software Foundation","product":"Apache ActiveMQ All","versions":["< 5.19.7",">= 6.0.0, < 6.2.6"]},{"vendor":"Apache Software Foundation","product":"Apache ActiveMQ","versions":["< 5.19.7",">= 6.0.0, < 6.2.6"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.activemq:activemq-broker","vulnerableRanges":["<5.19.7",">=6.0.0, <6.2.6"],"patched":["5.19.7","6.2.6"],"from":["GHSA-hg6c-8mvr-jqc9"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.activemq:activemq-all","vulnerableRanges":["<5.19.7",">=6.0.0, <6.2.6"],"patched":["5.19.7","6.2.6"],"from":["GHSA-hg6c-8mvr-jqc9"],"provenance":"source"},{"ecosystem":"Maven","package":"org.apache.activemq:apache-activemq","vulnerableRanges":["<5.19.7",">=6.0.0, <6.2.6"],"patched":["5.19.7","6.2.6"],"from":["GHSA-hg6c-8mvr-jqc9"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-33577","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-apache-activemq-broker-cve-2026-34197","packageHistory":[{"cve":"CVE-2026-40466","published":"2026-04-24","fixed":"6.2.5","kev":false,"link":{"from":"CVE-2026-40466","to":"CVE-2026-42588","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.activemq:activemq-broker","fromFixed":"5.19.6","toFixed":"5.19.7","daysApart":38},{"kind":"version-step","provenance":"source","package":"Maven:org.apache.activemq:activemq-broker","fromFixed":"6.2.5","toFixed":"6.2.6","daysApart":38},{"kind":"similar","provenance":"machine","score":0.69,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-41043","published":"2026-04-24","fixed":"6.2.5","kev":false},{"cve":"CVE-2026-41044","published":"2026-04-24","fixed":"6.2.5","kev":false},{"cve":"CVE-2026-42588","published":"2026-06-01","fixed":"6.2.6","kev":false},{"cve":"CVE-2026-45505","published":"2026-06-01","fixed":"6.2.6","kev":false},{"cve":"CVE-2026-49270","published":"2026-06-01","fixed":"6.2.6","kev":false}],"package":"Maven:org.apache.activemq:activemq-broker"}}