GHSA-h6wq-jw7q-grxv: Jose4j Elliptic Curve Key Disclosure Vulnerability
HIGHGHSA-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
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.
<dependency>
<groupId>org.bitbucket.b_c</groupId>
<artifactId>jose4j</artifactId>
<version>0.5.5</version>
</dependency>
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
GHSA-h6wq-jw7q-grxv Affected Jose4j Versions
1 component(s)| 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?
Which Jose4j versions are affected?
What version fixes GHSA-h6wq-jw7q-grxv?
Is jose4j affected?
What CWE is associated with GHSA-h6wq-jw7q-grxv?
How can I check Maven dependencies for GHSA-h6wq-jw7q-grxv?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}