CVE-2026-42588
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedImproper Input Validation, Improper Control of Generation of Code ('Code Injection') vulnerability in Apache ActiveMQ Broker, Apache ActiveMQ All, Apache ActiveMQ. Apache 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 BrokerService.addNetworkConnector(String). An 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. 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.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. Users are recommended to upgrade to version 5.19.7 or 6.2.6, which fixes the issue.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceApache ActiveMQ Classic exposes the Jolokia JMX-HTTP bridge at /api/jolokia/ which permits exec operations on ActiveMQ MBeans. An authenticated attacker can invoke BrokerService.addNetworkConnector() with a crafted 'masterslave://' discovery URI that triggers VM transport's brokerConfig parameter to load a Spring XML application context via ResourceXmlApplicationContext. Since singleton beans are instantiated before BrokerService validates the configuration, arbitrary code execution occurs through bean factory methods like Runtime.exec().
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 5.19.7>= 6.0.0, < 6.2.6< 5.19.7>= 6.0.0, < 6.2.6CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check ActiveMQ versionLocate the ActiveMQ installation and run: for 5.x check 'activemq --version' or look at lib/activemq-all-*.jar filename; for 6.x check the version file or pom.xml in the installation directoryAffected if The installed version is below 5.19.7 or is 6.0.0 through 6.2.5
-
Verify Jolokia HTTP endpoint exposureCheck web server configuration files (jetty.xml or conf/jetty*.xml) for a Jolokia servlet mapping at /api/jolokia/ or attempt a local HTTP request to http://localhost:8161/api/jolokia/Affected if The Jolokia endpoint is exposed and accessible over HTTP without network restrictions
-
Confirm Jolokia authentication statusReview the security constraint in jetty.xml for the /api/jolokia/ path - check for a constraint-name and associated login-config; attempt an unauthenticated request to the Jolokia endpointAffected if The Jolokia endpoint allows unauthenticated or weakly authenticated access
-
Check if JMX/RMI network connector invocation is possibleReview whether the ActiveMQ user account used for Jolokia has permissions to invoke 'addNetworkConnector' on the BrokerService MBean; check jmx.access and jmx.password files for role permissionsAffected if A user with permissions to invoke BrokerService operations via Jolokia exists and can be leveraged
You are affected if your ActiveMQ version is below 5.19.7 or between 6.0.0 and 6.2.5 AND the Jolokia endpoint at /api/jolokia/ is accessible with sufficient permissions to invoke BrokerService.addNetworkConnector.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped5.19.76.2.6
Upgrade Apache ActiveMQ to version 5.19.7 or 6.2.6 which contains the fix for this code injection vulnerability.
Upgrade to Apache ActiveMQ 5.19.7 (for 5.x line) or 6.2.6 (for 6.x line)
- 1. Determine the currently installed ActiveMQ version by checking the version file or startup logs
- 2. Identify which major version line (5.x or 6.x) is currently in use
- 3. For ActiveMQ 5.x users: Download Apache ActiveMQ 5.19.7 from the official Apache archives
- 4. For ActiveMQ 6.x users: Download Apache ActiveMQ 6.2.6 from the official Apache archives
- 5. Stop the ActiveMQ broker gracefully (using bin/activemq stop or equivalent)
- 6. Back up the entire existing ActiveMQ installation directory and configuration files
- 7. Extract the new version to the target installation location
- 8. Restore custom configurations from the backup (activemq.xml, login.config, etc.)
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation3.0 h
- Implementation4.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,128.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-42588 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-42588 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data