CVE-2018-11087: Spring Framework Amqp-client And Org.springframework.amqp:spring-amqp Vulnerability

MODERATE
Advisory Identifier: GHSA-w4g2-9hj6-5472
CVSS 5.9
CWE-295
Published
Advisory Summary

CVE-2018-11087 is a MODERATE (CVSS 5.9) amqp-client and org.springframework.amqp:spring-amqp vulnerability (CWE-295: Improper Certificate Validation) affecting Spring Framework libraries in the Maven ecosystem. The issue involves amqp-client and org.springframework.amqp:spring-amqp. Remediation is available by upgrading affected packages to version 2.0.6, 1.7.10, 4.8.0, 5.4.0.

CVE-2018-11087 at a Glance

CVE Identifier CVE-2018-11087
GHSA Identifier GHSA-w4g2-9hj6-5472
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Spring Framework
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:H/I:N/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 None (I:N)
Availability None (A:N)

How to Fix CVE-2018-11087

To remediate this vulnerability, upgrade all affected Spring Framework 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.springframework.amqp:spring-amqp fixed: 2.0.6
<dependency>
    <groupId>org.springframework.amqp</groupId>
    <artifactId>spring-amqp</artifactId>
    <version>2.0.6</version>
</dependency>
org.springframework.amqp:spring-amqp fixed: 1.7.10
<dependency>
    <groupId>org.springframework.amqp</groupId>
    <artifactId>spring-amqp</artifactId>
    <version>1.7.10</version>
</dependency>
com.rabbitmq:amqp-client fixed: 4.8.0
<dependency>
    <groupId>com.rabbitmq</groupId>
    <artifactId>amqp-client</artifactId>
    <version>4.8.0</version>
</dependency>
com.rabbitmq:amqp-client fixed: 5.4.0
<dependency>
    <groupId>com.rabbitmq</groupId>
    <artifactId>amqp-client</artifactId>
    <version>5.4.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.springframework.amqp

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.springframework.amqp

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

Note: The mvn dependency:tree -Dincludes=org.springframework.amqp 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 Spring Framework, 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

Pivotal Spring AMQP, 1.x versions prior to 1.7.10 and 2.x versions prior to 2.0.6, expose a man-in-the-middle vulnerability due to lack of hostname validation. A malicious user that has the ability to intercept traffic would be able to view data in transit.

CVE-2018-11087 Affected Spring Framework Versions

4 component(s)
Fixed Versions:
2.0.61.7.104.8.05.4.0
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.amqp:spring-amqp
Maven
≥ 2.0.0
< 2.0.6
2.0.6
org.springframework.amqp:spring-amqp
Maven
< 1.7.10
1.7.10
com.rabbitmq:amqp-client
Maven
< 4.8.0
4.8.0
com.rabbitmq:amqp-client
Maven
≥ 5.0.0
< 5.4.0
5.4.0

References

Frequently Asked Questions

What is CVE-2018-11087?
CVE-2018-11087 is a security vulnerability in Spring Framework involving amqp-client and org.springframework.amqp:spring-amqp under CWE-295: Improper Certificate Validation.
Which Spring Framework versions are affected?
Affected versions include releases prior to 2.0.6, 1.7.10, 4.8.0, 5.4.0 across affected packages: org.springframework.amqp:spring-amqp, com.rabbitmq:amqp-client.
What version fixes CVE-2018-11087?
Upgrading to 2.0.6, 1.7.10, 4.8.0, 5.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-amqp affected?
Yes, org.springframework.amqp:spring-amqp is affected in releases prior to 2.0.6, 1.7.10. Upgrade your dependency to 2.0.6, 1.7.10 or later.
Is amqp-client affected?
Yes, com.rabbitmq:amqp-client is affected in releases prior to 4.8.0, 5.4.0. Upgrade your dependency to 4.8.0, 5.4.0 or later.
What is the CVSS score of CVE-2018-11087?
CVE-2018-11087 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:H/I:N/A:N.
What CWE is associated with CVE-2018-11087?
CVE-2018-11087 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-11087?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.amqp'. 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-w4g2-9hj6-5472",
  "modified" : "2021-09-20T22:35:57Z",
  "published" : "2018-10-18T18:06:08Z",
  "aliases" : [ "CVE-2018-11087" ],
  "summary" : "Moderate severity vulnerability that affects com.rabbitmq:amqp-client and org.springframework.amqp:spring-amqp",
  "details" : "Pivotal Spring AMQP, 1.x versions prior to 1.7.10 and 2.x versions prior to 2.0.6, expose a man-in-the-middle vulnerability due to lack of hostname validation. A malicious user that has the ability to intercept traffic would be able to view data in transit.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.amqp:spring-amqp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.0.0"
      }, {
        "fixed" : "2.0.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.amqp:spring-amqp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.rabbitmq:amqp-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.8.0"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.rabbitmq:amqp-client"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.4.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-11087"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-w4g2-9hj6-5472"
  }, {
    "type" : "WEB",
    "url" : "https://pivotal.io/security/cve-2018-11087"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T21:59:27Z",
    "nvd_published_at" : null
  }
}