CVE-2019-17195: Nimbus jose jwt Improper Check For Unusual Or Vulnerability

CRITICAL
Advisory Identifier: GHSA-f6vf-pq8c-69m4
CVSS 9.8
CWE-755 CWE-754
Published
Advisory Summary

CVE-2019-17195 is a CRITICAL (CVSS 9.8) improper check for unusual or vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting Nimbus jose jwt libraries in the Maven ecosystem. The issue involves improper check for unusual or exceptional conditions in connect2id nimbus jose+jwt. Remediation is available by upgrading affected packages to version 7.9.

CVE-2019-17195 at a Glance

CVE Identifier CVE-2019-17195
GHSA Identifier GHSA-f6vf-pq8c-69m4
Severity CRITICAL
CVSS v3.1 Base Score 9.8
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product Nimbus jose jwt
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-2019-17195

To remediate this vulnerability, upgrade all affected Nimbus jose jwt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.nimbusds:nimbus-jose-jwt fixed: 7.9
<dependency>
    <groupId>com.nimbusds</groupId>
    <artifactId>nimbus-jose-jwt</artifactId>
    <version>7.9</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=com.nimbusds

How to Check if You Are Affected

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

mvn dependency:tree -Dincludes=com.nimbusds

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

Note: The mvn dependency:tree -Dincludes=com.nimbusds 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 Nimbus jose jwt, 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

Connect2id Nimbus JOSE+JWT before v7.9 can throw various uncaught exceptions while parsing a JWT, which could result in an application crash (potential information disclosure) or a potential authentication bypass.

CVE-2019-17195 Affected Nimbus jose jwt Versions

1 component(s)
Fixed Versions:
7.9
Product / Package Ecosystem Affected Versions Fixed Version
com.nimbusds:nimbus-jose-jwt
Maven
< 7.9
7.9

References

connect2id.com/blog/nimbus-jose-jw... WEB
https://connect2id.com/blog/nimbus-jose-jwt-7-9
Nimbus jose jwt Security Information SECURITY
https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/SECURITY-CHANGELOG.txt
bitbucket.org/connect2id/nimbus-j... PACKAGE
https://bitbucket.org/connect2id/nimbus-jose-jwt
NVD — CVE-2019-17195 NVD
https://nvd.nist.gov/vuln/detail/CVE-2019-17195
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com/security-alerts/cpuoct2021.html
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2022.html
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com/security-alerts/cpujan2021.html
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2022.html
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com/security-alerts/cpuapr2020.html
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com/security-alerts/cpuApr2021.html
Nimbus jose jwt Security Information SECURITY
https://www.oracle.com//security-alerts/cpujul2021.html
lists.apache.org/thread.html/rcac26c... WEB
https://lists.apache.org/thread.html/rcac26c2d4df22341fa6ebbfe93ba1eff77d2dcd3f6106a1dc1f9ac98@%3Cdev.avro.apache.org%3E
lists.apache.org/thread.html/r5e0883... WEB
https://lists.apache.org/thread.html/r5e08837e695efd36be73510ce58ec05785dbcea077819d8acc2d990d@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r35f630... WEB
https://lists.apache.org/thread.html/r35f6301a3e6a56259224786dd9c2a935ba27ff6b494d15a3b66efe6a@%3Cdev.avro.apache.org%3E
lists.apache.org/thread.html/r33dc23... WEB
https://lists.apache.org/thread.html/r33dc233634aedb04fa77db3eb79ea12d15ca4da89fa46a1c585ecb0b@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/r266728... WEB
https://lists.apache.org/thread.html/r2667286c8ceffaf893b16829b9612d8f7c4ee6b30362c6c1b583e3c2@%3Ccommits.druid.apache.org%3E
lists.apache.org/thread.html/e10d439... WEB
https://lists.apache.org/thread.html/e10d43984f39327e443e875adcd4a5049193a7c010e81971908caf41@%3Ccommon-issues.hadoop.apache.org%3E
lists.apache.org/thread.html/8768553... WEB
https://lists.apache.org/thread.html/8768553cda5838f59ee3865cac546e824fa740e82d9dc2a7fc44e80d@%3Ccommon-dev.hadoop.apache.org%3E

Frequently Asked Questions

What is CVE-2019-17195?
CVE-2019-17195 is a security vulnerability in Nimbus jose jwt involving Improper Check for Unusual or Exceptional Conditions in Connect2id Nimbus JOSE+JWT under CWE-755: Improper Handling of Exceptional Conditions.
Which Nimbus jose jwt versions are affected?
Affected versions include releases prior to 7.9 across affected packages: com.nimbusds:nimbus-jose-jwt.
What version fixes CVE-2019-17195?
Upgrading to 7.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is nimbus-jose-jwt affected?
Yes, com.nimbusds:nimbus-jose-jwt is affected in releases prior to 7.9. Upgrade your dependency to 7.9 or later.
What is the CVSS score of CVE-2019-17195?
CVE-2019-17195 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-2019-17195?
CVE-2019-17195 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-17195?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.nimbusds'. 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-f6vf-pq8c-69m4",
  "modified" : "2022-02-08T22:07:38Z",
  "published" : "2019-10-16T18:31:17Z",
  "aliases" : [ "CVE-2019-17195" ],
  "summary" : "Improper Check for Unusual or Exceptional Conditions in Connect2id Nimbus JOSE+JWT",
  "details" : "Connect2id Nimbus JOSE+JWT before v7.9 can throw various uncaught exceptions while parsing a JWT, which could result in an application crash (potential information disclosure) or a potential authentication bypass.",
  "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" : "com.nimbusds:nimbus-jose-jwt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-17195"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuoct2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujan2022.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpujan2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2022.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuapr2020.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com/security-alerts/cpuApr2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://www.oracle.com//security-alerts/cpujul2021.html"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/rcac26c2d4df22341fa6ebbfe93ba1eff77d2dcd3f6106a1dc1f9ac98@%3Cdev.avro.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r5e08837e695efd36be73510ce58ec05785dbcea077819d8acc2d990d@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r35f6301a3e6a56259224786dd9c2a935ba27ff6b494d15a3b66efe6a@%3Cdev.avro.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r33dc233634aedb04fa77db3eb79ea12d15ca4da89fa46a1c585ecb0b@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r2667286c8ceffaf893b16829b9612d8f7c4ee6b30362c6c1b583e3c2@%3Ccommits.druid.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/e10d43984f39327e443e875adcd4a5049193a7c010e81971908caf41@%3Ccommon-issues.hadoop.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/8768553cda5838f59ee3865cac546e824fa740e82d9dc2a7fc44e80d@%3Ccommon-dev.hadoop.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://connect2id.com/blog/nimbus-jose-jwt-7-9"
  }, {
    "type" : "WEB",
    "url" : "https://bitbucket.org/connect2id/nimbus-jose-jwt/src/master/SECURITY-CHANGELOG.txt"
  }, {
    "type" : "PACKAGE",
    "url" : "https://bitbucket.org/connect2id/nimbus-jose-jwt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-754", "CWE-755" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-10-16T15:26:53Z",
    "nvd_published_at" : "2019-10-15T14:15:00Z"
  }
}