CVE-2018-11775: Activemq client Improper Certificate Validation Vulnerability

HIGH
Advisory Identifier: GHSA-m9w8-v359-9ffr
CVSS 7.4
CWE-295
Published
Advisory Summary

CVE-2018-11775 is a HIGH (CVSS 7.4) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Activemq client libraries in the Maven ecosystem. The issue involves improper certificate validation in apache activemq-client. Remediation is available by upgrading affected packages to version 5.15.6.

CVE-2018-11775 at a Glance

CVE Identifier CVE-2018-11775
GHSA Identifier GHSA-m9w8-v359-9ffr
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Activemq client
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.4

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

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 High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2018-11775

To remediate this vulnerability, upgrade all affected Activemq client 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:activemq-client fixed: 5.15.6
<dependency>
    <groupId>org.apache.activemq</groupId>
    <artifactId>activemq-client</artifactId>
    <version>5.15.6</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-2018-11775, 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 Activemq client in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.15.6), 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-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Activemq client, 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

TLS hostname verification when using the Apache ActiveMQ Client before 5.15.6 was missing which could make the client vulnerable to a MITM attack between a Java application using the ActiveMQ client and the ActiveMQ server. This is now enabled by default.

CVE-2018-11775 Affected Activemq client Versions

1 component(s)
Fixed Versions:
5.15.6
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.activemq:activemq-client
Maven
< 5.15.6
5.15.6

References

NVD — CVE-2018-11775 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-11775
Security Fix Commit FIX COMMIT
https://github.com/apache/activemq/commit/02971a40e281713a8397d3a1809c164b594abfbb
Security Fix Commit FIX COMMIT
https://github.com/apache/activemq/commit/bde7097fb8173cf871827df7811b3865679b963d
access.redhat.com/errata/rhsa-2019:38... WEB
https://access.redhat.com/errata/RHSA-2019:3892
GitHub Advisory / Wiki ADVISORY
https://github.com/advisories/GHSA-m9w8-v359-9ffr
Activemq client Source Repository REPOSITORY
https://github.com/apache/activemq
issues.apache.org/jira/browse/amq-704... WEB
https://issues.apache.org/jira/browse/AMQ-7047
lists.apache.org/thread.html/03f91b1... WEB
https://lists.apache.org/thread.html/03f91b1fb85686a848cee6b90112cf6059bd1b21b23bacaa11a962e1@%3Cdev.activemq.apache.org%3E
lists.apache.org/thread.html/2b5c003... WEB
https://lists.apache.org/thread.html/2b5c0039197a4949f29e1e2c9441ab38d242946b966f61c110808bcc@%3Ccommits.activemq.apache.org%3E
lists.apache.org/thread.html/a859563... WEB
https://lists.apache.org/thread.html/a859563f05fbe7c31916b3178c2697165bd9bbf5a65d1cf62aef27d2@%3Ccommits.activemq.apache.org%3E
lists.apache.org/thread.html/fcbe6ad... WEB
https://lists.apache.org/thread.html/fcbe6ad00f1de142148c20d813fae3765dc4274955e3e2f3ca19ff7b@%3Cdev.activemq.apache.org%3E
lists.apache.org/thread.html/rb698ed... WEB
https://lists.apache.org/thread.html/rb698ed085f79e56146ca24ab359c9ef95846618675ea1ef402e04a6d@%3Ccommits.activemq.apache.org%3E
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2021/03/msg00005.html
Activemq client Security Information SECURITY
http://activemq.apache.org/security-advisories.data/CVE-2018-11775-announcement.txt

Frequently Asked Questions

What is CVE-2018-11775?
CVE-2018-11775 is a security vulnerability in Activemq client involving Improper Certificate Validation in Apache activemq-client under CWE-295: Improper Certificate Validation.
Which Activemq client versions are affected?
Affected versions include releases prior to 5.15.6 across affected packages: org.apache.activemq:activemq-client.
What version fixes CVE-2018-11775?
Upgrading to 5.15.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is activemq-client affected?
Yes, org.apache.activemq:activemq-client is affected in releases prior to 5.15.6. Upgrade your dependency to 5.15.6 or later.
What is the CVSS score of CVE-2018-11775?
CVE-2018-11775 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2018-11775?
CVE-2018-11775 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Maven dependencies for CVE-2018-11775?
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-m9w8-v359-9ffr",
  "modified" : "2022-11-17T19:38:02Z",
  "published" : "2018-10-19T16:42:27Z",
  "aliases" : [ "CVE-2018-11775" ],
  "summary" : "Improper Certificate Validation in Apache activemq-client",
  "details" : "TLS hostname verification when using the Apache ActiveMQ Client before 5.15.6 was missing which could make the client vulnerable to a MITM attack between a Java application using the ActiveMQ client and the ActiveMQ server. This is now enabled by default.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.activemq:activemq-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "5.15.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11775"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/activemq/commit/02971a40e281713a8397d3a1809c164b594abfbb"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/activemq/commit/bde7097fb8173cf871827df7811b3865679b963d"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2019:3892"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-m9w8-v359-9ffr"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/activemq"
  }, {
    "type" : "WEB",
    "url" : "https://issues.apache.org/jira/browse/AMQ-7047"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/03f91b1fb85686a848cee6b90112cf6059bd1b21b23bacaa11a962e1@%3Cdev.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/2b5c0039197a4949f29e1e2c9441ab38d242946b966f61c110808bcc@%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/a859563f05fbe7c31916b3178c2697165bd9bbf5a65d1cf62aef27d2@%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/fcbe6ad00f1de142148c20d813fae3765dc4274955e3e2f3ca19ff7b@%3Cdev.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb698ed085f79e56146ca24ab359c9ef95846618675ea1ef402e04a6d@%3Ccommits.activemq.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2021/03/msg00005.html"
  }, {
    "type" : "WEB",
    "url" : "http://activemq.apache.org/security-advisories.data/CVE-2018-11775-announcement.txt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:45:46Z",
    "nvd_published_at" : "2018-09-10T20:29:00Z"
  }
}