2024-05-01 16:35:12

by Jean-Baptiste Onofré

[permalink] [raw]
Subject: [oss-security] CVE-2024-32114: Apache ActiveMQ: Jolokia and REST API were not secured with default configuration

Severity: low

Affected versions:

- Apache ActiveMQ 6.0.0 through 6.1.1

Description:

In Apache ActiveMQ 6.x, the default configuration doesn't secure the API web context (where the Jolokia JMX REST API and the Message REST API are located).
It means that anyone can use these layers without any required authentication. Potentially, anyone can interact with the broker (using Jolokia JMX REST API) and/or produce/consume messages or purge/delete destinations (using the Message REST API).

To mitigate, users can update the default conf/jetty.xml configuration file to add authentication requirement:
<bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping">
  <property name="constraint" ref="securityConstraint" />
  <property name="pathSpec" value="/" />
</bean>

Or we encourage users to upgrade to Apache ActiveMQ 6.1.2 where the default configuration has been updated with authentication by default.

This issue is being tracked as AMQ-9477

Credit:

Martin Zeissig (finder)

References:

https://activemq.apache.org/security-advisories.data/CVE-2024-32114-announcement.txt
https://activemq.apache.org/
https://www.cve.org/CVERecord?id=CVE-2024-32114
https://issues.apache.org/jira/browse/AMQ-9477