CVE-2024-32114: Apache activemq Apache ActiveMQ's Default Configuration Doesn't Vulnerability
HIGHCVE-2024-32114 is a HIGH (CVSS 8.8) apache activemq's default configuration doesn't vulnerability (CWE-1188: Initialization of a Resource with an Insecure Default) affecting Apache activemq libraries in the Maven ecosystem. The issue involves apache activemq's default configuration doesn't secure the api web context. Remediation is available by upgrading affected packages to version 6.1.2.
CVE-2024-32114 at a Glance
Security Impact
CVSS: 8.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H).
How to Fix CVE-2024-32114
To remediate this vulnerability, upgrade all affected Apache activemq dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>apache-activemq</artifactId>
<version>6.1.2</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.apache.activemq
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2024-32114, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.apache.activemq
Analyze the terminal output to locate any version of Apache activemq in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.2), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.apache.activemq command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1188: Initialization of a Resource with an Insecure Default, where the product initializes or sets a resource with a default that is intended to be changed by the product's installer, administrator, or maintainer, but the default is not secure. In Apache activemq, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-32114 Affected Apache activemq Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.apache.activemq:apache-activemq
|
Maven |
≥ 6.0.0
< 6.1.2
|
6.1.2
|
References
Frequently Asked Questions
What is CVE-2024-32114?
Which Apache activemq versions are affected?
What version fixes CVE-2024-32114?
Is apache-activemq affected?
What is the CVSS score of CVE-2024-32114?
What CWE is associated with CVE-2024-32114?
How can I check Maven dependencies for CVE-2024-32114?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gj5m-m88j-v7c3",
"modified" : "2025-02-11T19:03:08Z",
"published" : "2024-05-02T09:30:48Z",
"aliases" : [ "CVE-2024-32114" ],
"summary" : "Apache ActiveMQ's default configuration doesn't secure the API web context",
"details" : "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).\n\nTo mitigate, users can update the default conf/jetty.xml configuration file to add authentication requirement:\n<bean id=\"securityConstraintMapping\" class=\"org.eclipse.jetty.security.ConstraintMapping\">\n <property name=\"constraint\" ref=\"securityConstraint\" />\n <property name=\"pathSpec\" value=\"/\" />\n</bean>\n\nOr we encourage users to upgrade to Apache ActiveMQ 6.1.2 where the default configuration has been updated with authentication by default.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.apache.activemq:apache-activemq"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.1.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32114"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/activemq/pull/1201"
}, {
"type" : "WEB",
"url" : "https://github.com/apache/activemq/commit/43cc596219b6a8c8b5a54fbda3fb68cb4424f2d0"
}, {
"type" : "WEB",
"url" : "https://activemq.apache.org/security-advisories.data/CVE-2024-32114-announcement.txt"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apache/activemq"
}, {
"type" : "WEB",
"url" : "https://issues.apache.org/jira/browse/AMQ-9477"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1188" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-03T17:47:07Z",
"nvd_published_at" : "2024-05-02T09:15:06Z"
}
}