CVE-2016-2141: Jgroups Improper Input Validation Vulnerability

CRITICAL
Advisory Identifier: GHSA-rc7h-x6cq-988q
CVSS 9.8
CWE-20
Published
Advisory Summary

CVE-2016-2141 is a CRITICAL (CVSS 9.8) improper input validation vulnerability (CWE-20: Improper Input Validation) affecting Jgroups libraries in the Maven ecosystem. The issue involves improper input validation in jgroups. Remediation is available by upgrading affected packages to version 3.6.10.Final, 3.2.16.Final.

CVE-2016-2141 at a Glance

CVE Identifier CVE-2016-2141
GHSA Identifier GHSA-rc7h-x6cq-988q
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-20: Improper Input Validation
Affected Product Jgroups
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.8

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

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

How to Fix CVE-2016-2141

To remediate this vulnerability, upgrade all affected Jgroups 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.jgroups:jgroups fixed: 3.6.10.Final
<dependency>
    <groupId>org.jgroups</groupId>
    <artifactId>jgroups</artifactId>
    <version>3.6.10.Final</version>
</dependency>
org.jgroups:jgroups fixed: 3.2.16.Final
<dependency>
    <groupId>org.jgroups</groupId>
    <artifactId>jgroups</artifactId>
    <version>3.2.16.Final</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.jgroups

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=org.jgroups

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

Note: The mvn dependency:tree -Dincludes=org.jgroups 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 Jgroups, 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

JGroups before 4.0 does not require the proper headers for the ENCRYPT and AUTH protocols from nodes joining the cluster, which allows remote attackers to bypass security restrictions and send and receive messages within the cluster via unspecified vectors. Fixes for this issue have been backported to versions 3.6.10.Final and 3.2.16.Final.

CVE-2016-2141 Affected Jgroups Versions

2 component(s)
Fixed Versions:
3.6.10.Final3.2.16.Final
Product / Package Ecosystem Affected Versions Fixed Version
org.jgroups:jgroups
Maven
≥ 3.3.0.Alpha1
< 3.6.10.Final
3.6.10.Final
org.jgroups:jgroups
Maven
< 3.2.16.Final
3.2.16.Final

References

access.redhat.com/errata/rhsa-2016:14... WEB
https://access.redhat.com/errata/RHSA-2016:1434
access.redhat.com/errata/rhsa-2016:14... WEB
https://access.redhat.com/errata/RHSA-2016:1433
access.redhat.com/errata/rhsa-2016:14... WEB
https://access.redhat.com/errata/RHSA-2016:1432
NVD — CVE-2016-2141 NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-2141
Security Fix Commit FIX COMMIT
https://github.com/belaban/JGroups/commit/eeaf5241cce464ef21a2dfc4938729ade9ebef36
Jgroups Security Information SECURITY
https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html
Jgroups Security Information SECURITY
https://web.archive.org/web/20201207092245/http://www.securitytracker.com/id/1036165
Jgroups Security Information SECURITY
https://web.archive.org/web/20161013163606/http://www.securityfocus.com/bid/91481
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1334.html
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1333.html
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1332.html
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1331.html
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1330.html
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1329.html
rhn.redhat.com/errata/rhsa-2016-13... WEB
https://rhn.redhat.com/errata/RHSA-2016-1328.html
lists.apache.org/thread.html/rb37cc9... WEB
https://lists.apache.org/thread.html/rb37cc937d4fc026fb56de4b4ec0d054aa4083c1a4edd0d8360c068a0@%3Cdev.geode.apache.org%3E
lists.apache.org/thread.html/ra18cac... WEB
https://lists.apache.org/thread.html/ra18cac97416abc2958db0b107877c31da28d884fa6e70fd89c87384a@%3Cdev.geode.apache.org%3E
issues.redhat.com/browse/jgrp-2074 WEB
https://issues.redhat.com/browse/JGRP-2074
issues.redhat.com/browse/jgrp-2055 WEB
https://issues.redhat.com/browse/JGRP-2055
issues.jboss.org/browse/jgrp-2021 WEB
https://issues.jboss.org/browse/JGRP-2021
Jgroups Source Repository REPOSITORY
https://github.com/belaban/JGroups
access.redhat.com/errata/rhsa-2016:13... WEB
https://access.redhat.com/errata/RHSA-2016:1389
access.redhat.com/errata/rhsa-2016:13... WEB
https://access.redhat.com/errata/RHSA-2016:1376
access.redhat.com/errata/rhsa-2016:13... WEB
https://access.redhat.com/errata/RHSA-2016:1374
access.redhat.com/errata/rhsa-2016:13... WEB
https://access.redhat.com/errata/RHSA-2016:1347
access.redhat.com/errata/rhsa-2016:13... WEB
https://access.redhat.com/errata/RHSA-2016:1346
access.redhat.com/errata/rhsa-2016:13... WEB
https://access.redhat.com/errata/RHSA-2016:1345
rhn.redhat.com/errata/rhsa-2016-14... WEB
http://rhn.redhat.com/errata/RHSA-2016-1435.html
rhn.redhat.com/errata/rhsa-2016-14... WEB
http://rhn.redhat.com/errata/RHSA-2016-1439.html
rhn.redhat.com/errata/rhsa-2016-20... WEB
http://rhn.redhat.com/errata/RHSA-2016-2035.html

Frequently Asked Questions

What is CVE-2016-2141?
CVE-2016-2141 is a security vulnerability in Jgroups involving Improper Input Validation in JGroups under CWE-20: Improper Input Validation.
Which Jgroups versions are affected?
Affected versions include releases prior to 3.6.10.Final, 3.2.16.Final across affected packages: org.jgroups:jgroups.
What version fixes CVE-2016-2141?
Upgrading to 3.6.10.Final, 3.2.16.Final (or the latest patched release for your respective branch) resolves the vulnerability.
Is jgroups affected?
Yes, org.jgroups:jgroups is affected in releases prior to 3.6.10.Final, 3.2.16.Final. Upgrade your dependency to 3.6.10.Final, 3.2.16.Final or later.
What is the CVSS score of CVE-2016-2141?
CVE-2016-2141 has a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2016-2141?
CVE-2016-2141 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-2016-2141?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.jgroups'. 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-rc7h-x6cq-988q",
  "modified" : "2023-06-01T19:57:55Z",
  "published" : "2022-05-13T01:03:31Z",
  "aliases" : [ "CVE-2016-2141" ],
  "summary" : "Improper Input Validation in JGroups",
  "details" : "JGroups before 4.0 does not require the proper headers for the ENCRYPT and AUTH protocols from nodes joining the cluster, which allows remote attackers to bypass security restrictions and send and receive messages within the cluster via unspecified vectors. Fixes for this issue have been backported to versions 3.6.10.Final and 3.2.16.Final.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jgroups:jgroups"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.3.0.Alpha1"
      }, {
        "fixed" : "3.6.10.Final"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.jgroups:jgroups"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.2.16.Final"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-2141"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/belaban/JGroups/commit/eeaf5241cce464ef21a2dfc4938729ade9ebef36"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/technetwork/security-advisory/cpuapr2019-5072813.html"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20201207092245/http://www.securitytracker.com/id/1036165"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20161013163606/http://www.securityfocus.com/bid/91481"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1334.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1333.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1332.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1331.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1330.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1329.html"
  }, {
    "type" : "WEB",
    "url" : "https://rhn.redhat.com/errata/RHSA-2016-1328.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rb37cc937d4fc026fb56de4b4ec0d054aa4083c1a4edd0d8360c068a0@%3Cdev.geode.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/ra18cac97416abc2958db0b107877c31da28d884fa6e70fd89c87384a@%3Cdev.geode.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/JGRP-2074"
  }, {
    "type" : "WEB",
    "url" : "https://issues.redhat.com/browse/JGRP-2055"
  }, {
    "type" : "WEB",
    "url" : "https://issues.jboss.org/browse/JGRP-2021"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/belaban/JGroups"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1434"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1433"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1432"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1389"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1376"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1374"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1347"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1346"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2016:1345"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1435.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-1439.html"
  }, {
    "type" : "WEB",
    "url" : "http://rhn.redhat.com/errata/RHSA-2016-2035.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-06T20:02:18Z",
    "nvd_published_at" : "2016-06-30T16:59:00Z"
  }
}