CVE-2018-1298: Apache qpid broker j Apache-qpid-broker-j Vulnerability

MODERATE
Advisory Identifier: GHSA-6w3v-66mj-2qm6
CVSS 5.9
CWE-20
Published
Advisory Summary

CVE-2018-1298 is a MODERATE (CVSS 5.9) apache-qpid-broker-j vulnerability (CWE-20: Improper Input Validation) affecting Apache qpid broker j libraries in the Maven ecosystem. The issue involves apache-qpid-broker-j. Remediation is available by upgrading affected packages to version 7.0.1.

CVE-2018-1298 at a Glance

CVE Identifier CVE-2018-1298
GHSA Identifier GHSA-6w3v-66mj-2qm6
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-20: Improper Input Validation
Affected Product Apache qpid broker j
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H).

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

How to Fix CVE-2018-1298

To remediate this vulnerability, upgrade all affected Apache qpid broker j 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.qpid:apache-qpid-broker-j fixed: 7.0.1
<dependency>
    <groupId>org.apache.qpid</groupId>
    <artifactId>apache-qpid-broker-j</artifactId>
    <version>7.0.1</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.qpid

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2018-1298, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.qpid

Analyze the terminal output to locate any version of Apache qpid broker j in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.qpid 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-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Apache qpid broker j, 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

A Denial of Service vulnerability was found in Apache Qpid Broker-J 7.0.0 in functionality for authentication of connections for AMQP protocols 0-8, 0-9, 0-91 and 0-10 when PLAIN or XOAUTH2 SASL mechanism is used. The vulnerability allows unauthenticated attacker to crash the broker instance. AMQP 1.0 and HTTP connections are not affected. An authentication of incoming AMQP connections in Apache Qpid Broker-J is performed by special entities called "Authentication Providers". Each Authentication Provider can support several SASL mechanisms which are offered to the connecting clients as part of SASL negotiation process. The client chooses the most appropriate SASL mechanism for authentication. Authentication Providers of following types supports PLAIN SASL mechanism: Plain, PlainPasswordFile, SimpleLDAP, Base64MD5PasswordFile, MD5, SCRAM-SHA-256, SCRAM-SHA-1. XOAUTH2 SASL mechanism is supported by Authentication Providers of type OAuth2. If an AMQP port is configured with any of these Authentication Providers, the Broker may be vulnerable.

CVE-2018-1298 Affected Apache qpid broker j Versions

1 component(s)
Fixed Versions:
7.0.1
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.qpid:apache-qpid-broker-j
Maven
≥ 7.0.0
< 7.0.1
All 1 versions
7.0.0
7.0.1

References

Frequently Asked Questions

What is CVE-2018-1298?
CVE-2018-1298 is a security vulnerability in Apache qpid broker j involving apache-qpid-broker-j under CWE-20: Improper Input Validation.
Which Apache qpid broker j versions are affected?
Affected versions include releases prior to 7.0.1 across affected packages: org.apache.qpid:apache-qpid-broker-j.
What version fixes CVE-2018-1298?
Upgrading to 7.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is apache-qpid-broker-j affected?
Yes, org.apache.qpid:apache-qpid-broker-j is affected in releases prior to 7.0.1. Upgrade your dependency to 7.0.1 or later.
What is the CVSS score of CVE-2018-1298?
CVE-2018-1298 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2018-1298?
CVE-2018-1298 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check Maven dependencies for CVE-2018-1298?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.qpid'. 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-6w3v-66mj-2qm6",
  "modified" : "2021-09-02T18:30:03Z",
  "published" : "2018-10-19T16:41:46Z",
  "aliases" : [ "CVE-2018-1298" ],
  "summary" : "Moderate severity vulnerability that affects org.apache.qpid:apache-qpid-broker-j",
  "details" : "A Denial of Service vulnerability was found in Apache Qpid Broker-J 7.0.0 in functionality for authentication of connections for AMQP protocols 0-8, 0-9, 0-91 and 0-10 when PLAIN or XOAUTH2 SASL mechanism is used. The vulnerability allows unauthenticated attacker to crash the broker instance. AMQP 1.0 and HTTP connections are not affected. An authentication of incoming AMQP connections in Apache Qpid Broker-J is performed by special entities called \"Authentication Providers\". Each Authentication Provider can support several SASL mechanisms which are offered to the connecting clients as part of SASL negotiation process. The client chooses the most appropriate SASL mechanism for authentication. Authentication Providers of following types supports PLAIN SASL mechanism: Plain, PlainPasswordFile, SimpleLDAP, Base64MD5PasswordFile, MD5, SCRAM-SHA-256, SCRAM-SHA-1. XOAUTH2 SASL mechanism is supported by Authentication Providers of type OAuth2. If an AMQP port is configured with any of these Authentication Providers, the Broker may be vulnerable.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.qpid:apache-qpid-broker-j"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.1"
      } ]
    } ],
    "versions" : [ "7.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-1298"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6w3v-66mj-2qm6"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/d9087e9e57c9b6376754e2b4ea8cd5e9ae6449ed17fc384640c9c9e1@%3Cusers.qpid.apache.org%3E"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:20:19Z",
    "nvd_published_at" : null
  }
}