Skip to content

Fix CVEs (CVE-2026-42253, etc) (6.0.x)#213

Open
epearson-tt wants to merge 6 commits into
tomitribe:activemq-6.0.x-TT.xfrom
epearson-tt:activemq-6.0.x-TT.x-cve42253etal
Open

Fix CVEs (CVE-2026-42253, etc) (6.0.x)#213
epearson-tt wants to merge 6 commits into
tomitribe:activemq-6.0.x-TT.xfrom
epearson-tt:activemq-6.0.x-TT.x-cve42253etal

Conversation

@epearson-tt

Copy link
Copy Markdown

cshannon and others added 6 commits June 9, 2026 20:23
…sportFactory (apache#2003) (apache#2010)

By default the VMTransportFactory will not be allowed to use
XBeanBrokerFactory to create new brokers. Only the default and
properties factories will be enabled. To enable the XBeanBrokerFactory,
the property org.apache.activemq.transport.VM_TRANSPORT_FACTORY_SCHEMES_ENABLED
can be configured.

(cherry picked from commit 103962e)
(cherry picked from commit c2fc7a1)
…pache#2004) (apache#2012)

Parentheses are optional when creating composite and nested URIs so this
updates the validation to handle missing parens as well.

Follow on to apache#1847

(cherry picked from commit cf00060)
(cherry picked from commit c1b44af)
…pache#2014)

* Disable the message servlet by default

* Add warning message and deprecated annotation

(cherry picked from commit d8a8540)
(cherry picked from commit 8b5af8d)
…veDestination (apache#2009)

* [apache#2005] Fix authorization check on removeDestination

(cherry picked from commit 79da3ee)

* [apache#2005] 6.2.x/5.19.x - Remove ParallelTest for backport

(cherry picked from commit dfeac9f)
…ult (apache#2025) (apache#2037)

* Harden web console and Jolokia access by default

jetty.xml:
- Add Referrer-Policy and Permissions-Policy response headers; provide
  commented-out Strict-Transport-Security for HTTPS deployments.
- Wrap the existing HandlerCollection in an InetAccessHandler and restrict
  access to loopback (127.0.0.1, ::1) by default. Provide commented-out
  templates for RFC1918 includes and exclude rules.
- Tie Server.start() to the loopback include beans via depends-on so the
  allow-list is fully populated before the server starts.
- Add a commented-out ForwardedRequestCustomizer for reverse-proxy setups,
  with a warning about header spoofing when the proxy does not strip
  inbound X-Forwarded-* headers.

jolokia-access.xml:
- Restrict Jolokia to HTTP POST to kill GET-based CSRF/SSRF vectors.
- Deny destructive and privileged broker operations (terminateJVM, stop,
  restart, add/removeConnector, add/removeQueue/Topic, durable subscriber
  lifecycle, runtime limit setters, reloadLog4jProperties).
- Deny destination message-data mutation (purge, remove/copy/move
  messages, sendTextMessage*, pause/resume); browse* remains allowed.
- Deny durable subscriber destroy/setSelector and JobScheduler removeJob*.
- Deny NetworkConnector Password/RemotePassword attributes and credential
  setters.
- Deny known JMX RCE / introspection surfaces: javax.management.loading
  MLet, JMImplementation, java.util.logging, java.lang:type=Memory and
  ClassLoading, plus java.lang:type=Runtime SystemProperties and
  InputArguments.

* jetty.xml: restrict Jolokia endpoint to admins role

Add a jolokiaSecurityConstraintMapping that binds adminSecurityConstraint
(admins-only) to /api/jolokia/*, mirroring how *.action is gated on the
web console. Wired into securityHandler before securityConstraintMapping
so the admin role check applies to all Jolokia requests rather than the
broader users/admins constraint.

(cherry picked from commit be8415f)
…nc (apache#2048)

This update waits until the ConnectionInfo command is processed by the
entire broker chain without error before sending the BrokerSubscriptionInfo
command for durable sync back to a remote broker requesting it

(cherry picked from commit 4115627)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants