Vulnerabilities in pkg:maven/org.apache.activemq/artemis-openwire-protocol

PACKAGE
Advisory Identifier: GHSA-q7fr-vqhq-v5xr
Advisory Summary

CVE-2021-26118 is a HIGH (CVSS 7.5) apache activemq artemis vulnerable to vulnerability (CWE-284: Improper Access Control) affecting Artemis openwire protocol libraries in the Maven ecosystem. The issue involves apache activemq artemis vulnerable to improper access control. Remediation is available by upgrading affected packages to version 2.16.0.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.apache.activemq/artemis-openwire-protocol

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.apache.activemq/artemis-openwire-protocol. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-q7fr-vqhq-v5xr CVE-2021-26118 HIGH Apache ActiveMQ Artemis vulnerable to Improper Access Control
GHSA-f4gc-mwrg-q36r CVE-2026-32642 LOW Apache Artemis: Unauthorized Temporary Address Creation via OpenWire Protocol

CVE-2021-26118 at a Glance

CVE Identifier CVE-2021-26118
GHSA Identifier GHSA-q7fr-vqhq-v5xr
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-284: Improper Access Control
Affected Product Artemis openwire protocol
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

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:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2021-26118

To remediate this vulnerability, upgrade all affected Artemis openwire protocol 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:artemis-openwire-protocol fixed: 2.16.0
<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>artemis-openwire-protocol</artifactId>
    <version>2.16.0</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-2021-26118, 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 Artemis openwire protocol in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.16.0), 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-284: Improper Access Control, where the product does not restrict or incorrectly restricts access to a resource from an unauthorized actor. In Artemis openwire protocol, 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

While investigating ARTEMIS-2964 it was found that the creation of advisory messages in the OpenWire protocol head of Apache ActiveMQ Artemis 2.15.0 bypassed policy based access control for the entire session. Production of advisory messages was not subject to access control in error.

CVE-2021-26118 Affected Artemis openwire protocol Versions

1 component(s)
Fixed Versions:
2.16.0
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.activemq:artemis-openwire-protocol
Maven
< 2.16.0
2.16.0

References

Frequently Asked Questions

What is CVE-2021-26118?
CVE-2021-26118 is a security vulnerability in Artemis openwire protocol involving Apache ActiveMQ Artemis vulnerable to Improper Access Control under CWE-284: Improper Access Control.
Which Artemis openwire protocol versions are affected?
Affected versions include releases prior to 2.16.0 across affected packages: org.apache.activemq:artemis-openwire-protocol.
What version fixes CVE-2021-26118?
Upgrading to 2.16.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is artemis-openwire-protocol affected?
Yes, org.apache.activemq:artemis-openwire-protocol is affected in releases prior to 2.16.0. Upgrade your dependency to 2.16.0 or later.
What is the CVSS score of CVE-2021-26118?
CVE-2021-26118 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2021-26118?
CVE-2021-26118 is classified under CWE-284: Improper Access Control (The product does not restrict or incorrectly restricts access to a resource from an unauthorized actor.).
How can I check Maven dependencies for CVE-2021-26118?
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-q7fr-vqhq-v5xr",
  "modified" : "2026-07-07T13:33:16Z",
  "published" : "2021-06-16T17:39:05Z",
  "aliases" : [ "CVE-2021-26118" ],
  "summary" : "Apache ActiveMQ Artemis vulnerable to Improper Access Control",
  "details" : "While investigating ARTEMIS-2964 it was found that the creation of advisory messages in the OpenWire protocol head of Apache ActiveMQ Artemis 2.15.0 bypassed policy based access control for the entire session. Production of advisory messages was not subject to access control in error.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.activemq:artemis-openwire-protocol"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.16.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-26118"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/activemq-artemis/commit/e5566d52116d81611d914548adc3cbb14d7118d4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/activemq-artemis"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rafd5d7cf303772a0118865262946586921a65ebd98fc24f56c812574%40%3Cannounce.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rafd5d7cf303772a0118865262946586921a65ebd98fc24f56c812574@%3Cannounce.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://mail-archives.apache.org/mod_mbox/activemq-users/202101.mbox/%3CCAH%2BvQmMUNnkiXv2-d3ucdErWOsdnLi6CgnK%2BVfixyJvTgTuYig%40mail.gmail.com%3E"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20210827-0002"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-284", "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-05T23:06:41Z",
    "nvd_published_at" : "2021-01-27T19:15:00Z"
  }
}