GHSA-h6wq-jw7q-grxv: Jose4j Elliptic Curve Key Disclosure Vulnerability

HIGH
Published
Advisory Summary

GHSA-h6wq-jw7q-grxv is a HIGH elliptic curve key disclosure vulnerability (General Security Weakness) affecting Jose4j libraries in the Maven ecosystem. The issue involves elliptic curve key disclosure. Remediation is available by upgrading affected packages to version 0.5.5.

GHSA-h6wq-jw7q-grxv at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-h6wq-jw7q-grxv
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Jose4j
Package Ecosystem Maven
Published Date
Last Updated

How to Fix GHSA-h6wq-jw7q-grxv

To remediate this vulnerability, upgrade all affected Jose4j 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.bitbucket.b_c:jose4j fixed: 0.5.5
<dependency>
    <groupId>org.bitbucket.b_c</groupId>
    <artifactId>jose4j</artifactId>
    <version>0.5.5</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.bitbucket.b_c

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-h6wq-jw7q-grxv, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.bitbucket.b_c

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

Note: The mvn dependency:tree -Dincludes=org.bitbucket.b_c 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 General Security Weakness. In Jose4j, 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

Affected versions of the package are vulnerable to Elliptic Curve Key Disclosure.

GHSA-h6wq-jw7q-grxv Affected Jose4j Versions

1 component(s)
Fixed Versions:
0.5.5
Product / Package Ecosystem Affected Versions Fixed Version
org.bitbucket.b_c:jose4j
Maven
≥ 0.3.6
< 0.5.5
0.5.5

References

Frequently Asked Questions

What is GHSA-h6wq-jw7q-grxv?
GHSA-h6wq-jw7q-grxv is a security vulnerability in Jose4j involving Elliptic Curve Key Disclosure under General Security Weakness.
Which Jose4j versions are affected?
Affected versions include releases prior to 0.5.5 across affected packages: org.bitbucket.b_c:jose4j.
What version fixes GHSA-h6wq-jw7q-grxv?
Upgrading to 0.5.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jose4j affected?
Yes, org.bitbucket.b_c:jose4j is affected in releases prior to 0.5.5. Upgrade your dependency to 0.5.5 or later.
What CWE is associated with GHSA-h6wq-jw7q-grxv?
GHSA-h6wq-jw7q-grxv is classified under General Security Weakness.
How can I check Maven dependencies for GHSA-h6wq-jw7q-grxv?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.bitbucket.b_c'. 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-h6wq-jw7q-grxv",
  "modified" : "2021-02-24T19:38:21Z",
  "published" : "2021-02-24T19:38:21Z",
  "withdrawn" : "2021-02-24T19:38:21Z",
  "aliases" : [ ],
  "summary" : "Elliptic Curve Key Disclosure",
  "details" : "Affected versions of the package are vulnerable to Elliptic Curve Key Disclosure.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.bitbucket.b_c:jose4j"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.3.6"
      }, {
        "fixed" : "0.5.5"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://bitbucket.org/b_c/jose4j/commits/0517896170af8d5c057407c70a7b08dae454829e"
  }, {
    "type" : "WEB",
    "url" : "https://www.whitesourcesoftware.com/vulnerability-database/WS-2017-0208"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2019-05-23T07:37:09Z",
    "nvd_published_at" : null
  }
}