Vulnerabilities in pkg:maven/org.eclipse.paho/org.eclipse.paho.client.mqttv3

PACKAGE
Advisory Identifier: GHSA-63qc-p2x4-9fgf
Advisory Summary

CVE-2019-11777 is a MODERATE (CVSS 7.5) improper handling of exceptional conditions vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Org.eclipse.paho.client.mqttv3 libraries in the Maven ecosystem. The issue involves improper handling of exceptional conditions and origin validation error in eclipse paho java client library. Remediation is available by upgrading affected packages to version 1.2.1.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.eclipse.paho/org.eclipse.paho.client.mqttv3

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.eclipse.paho/org.eclipse.paho.client.mqttv3. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-63qc-p2x4-9fgf CVE-2019-11777 MODERATE Improper Handling of Exceptional Conditions and Origin Validation Error in Eclipse Paho Java client library

CVE-2019-11777 at a Glance

CVE Identifier CVE-2019-11777
GHSA Identifier GHSA-63qc-p2x4-9fgf
Severity MODERATE
CVSS v3.1 Base Score 7.5
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Org.eclipse.paho.client.mqttv3
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:H/I:N/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 High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2019-11777

To remediate this vulnerability, upgrade all affected Org.eclipse.paho.client.mqttv3 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.eclipse.paho:org.eclipse.paho.client.mqttv3 fixed: 1.2.1
<dependency>
    <groupId>org.eclipse.paho</groupId>
    <artifactId>org.eclipse.paho.client.mqttv3</artifactId>
    <version>1.2.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.eclipse.paho

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.eclipse.paho

Analyze the terminal output to locate any version of Org.eclipse.paho.client.mqttv3 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.1), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.eclipse.paho 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-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In Org.eclipse.paho.client.mqttv3, 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 the Eclipse Paho Java client library version 1.2.0, when connecting to an MQTT server using TLS and setting a host name verifier, the result of that verification is not checked. This could allow one MQTT server to impersonate another and provide the client library with incorrect information.

CVE-2019-11777 Affected Org.eclipse.paho.client.mqttv3 Versions

1 component(s)
Fixed Versions:
1.2.1
Product / Package Ecosystem Affected Versions Fixed Version
org.eclipse.paho:org.eclipse.paho.client.mqttv3
Maven
< 1.2.1
1.2.1

References

Frequently Asked Questions

What is CVE-2019-11777?
CVE-2019-11777 is a security vulnerability in Org.eclipse.paho.client.mqttv3 involving Improper Handling of Exceptional Conditions and Origin Validation Error in Eclipse Paho Java client library under CWE-755: Improper Handling of Exceptional Conditions.
Which Org.eclipse.paho.client.mqttv3 versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: org.eclipse.paho:org.eclipse.paho.client.mqttv3.
What version fixes CVE-2019-11777?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.eclipse.paho.client.mqttv3 affected?
Yes, org.eclipse.paho:org.eclipse.paho.client.mqttv3 is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of CVE-2019-11777?
CVE-2019-11777 has a CVSS v3.1 base score of 7.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2019-11777?
CVE-2019-11777 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check Maven dependencies for CVE-2019-11777?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.eclipse.paho'. 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-63qc-p2x4-9fgf",
  "modified" : "2021-04-27T19:46:40Z",
  "published" : "2019-09-17T22:47:11Z",
  "aliases" : [ "CVE-2019-11777" ],
  "summary" : "Improper Handling of Exceptional Conditions and Origin Validation Error in Eclipse Paho Java client library",
  "details" : "In the Eclipse Paho Java client library version 1.2.0, when connecting to an MQTT server using TLS and setting a host name verifier, the result of that verification is not checked. This could allow one MQTT server to impersonate another and provide the client library with incorrect information.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.eclipse.paho:org.eclipse.paho.client.mqttv3"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11777"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.eclipse.org/bugs/show_bug.cgi?id=549934"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-346", "CWE-755" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-09-13T21:47:04Z",
    "nvd_published_at" : "2019-09-11T18:15:00Z"
  }
}