CVE-2024-32114: Apache activemq Apache ActiveMQ's Default Configuration Doesn't Vulnerability

HIGH
Advisory Identifier: GHSA-gj5m-m88j-v7c3
CVSS 8.8
CWE-1188
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-32114
GHSA Identifier GHSA-gj5m-m88j-v7c3
Severity HIGH
CVSS v3.1 Base Score 8.8
CWE Classification CWE-1188: Initialization of a Resource with an Insecure Default
Affected Product Apache activemq
Package Ecosystem Maven
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

org.apache.activemq:apache-activemq fixed: 6.1.2
<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>apache-activemq</artifactId>
    <version>6.1.2</version>
</dependency>
Verify Direct and Transitive Dependencies

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

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.

CVE-2024-32114 Affected Apache activemq Versions

1 component(s)
Fixed Versions:
6.1.2
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?
CVE-2024-32114 is a security vulnerability in Apache activemq involving Apache ActiveMQ's default configuration doesn't secure the API web context under CWE-1188: Initialization of a Resource with an Insecure Default.
Which Apache activemq versions are affected?
Affected versions include releases prior to 6.1.2 across affected packages: org.apache.activemq:apache-activemq.
What version fixes CVE-2024-32114?
Upgrading to 6.1.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-activemq affected?
Yes, org.apache.activemq:apache-activemq is affected in releases prior to 6.1.2. Upgrade your dependency to 6.1.2 or later.
What is the CVSS score of CVE-2024-32114?
CVE-2024-32114 has a CVSS v3.1 base score of 8.8 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2024-32114?
CVE-2024-32114 is classified under CWE-1188: Initialization of a Resource with an Insecure Default (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.).
How can I check Maven dependencies for CVE-2024-32114?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.activemq'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}