Skip to content

jose4j-0.9.3.jar: 2 vulnerabilities (highest severity is: 7.5) reachable #46

Description

@mend-for-github-com
Vulnerable Library - jose4j-0.9.3.jar

The jose.4.j library is a robust and easy to use open source implementation of JSON Web Token (JWT) and the JOSE specification suite (JWS, JWE, and JWK). It is written in Java and relies solely on the JCA APIs for cryptography. Please see https://bitbucket.org/b_c/jose4j/wiki/Home for more info, examples, etc..

Library home page: https://bitbucket.org/b_c/jose4j/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/bitbucket/b_c/jose4j/0.9.3/jose4j-0.9.3.jar

Vulnerabilities

Vulnerability Severity CVSS Exploit Maturity EPSS Dependency Type Fixed in (jose4j version) Remediation Possible** Reachability
CVE-2024-29371 High 7.5 Not Defined 0.248% jose4j-0.9.3.jar Direct 0.9.6

Reachable

CVE-2023-51775 Medium 6.5 Not Defined 0.879% jose4j-0.9.3.jar Direct 0.9.4

Reachable

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2024-29371

Vulnerable Library - jose4j-0.9.3.jar

The jose.4.j library is a robust and easy to use open source implementation of JSON Web Token (JWT) and the JOSE specification suite (JWS, JWE, and JWK). It is written in Java and relies solely on the JCA APIs for cryptography. Please see https://bitbucket.org/b_c/jose4j/wiki/Home for more info, examples, etc..

Library home page: https://bitbucket.org/b_c/jose4j/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/bitbucket/b_c/jose4j/0.9.3/jose4j-0.9.3.jar

Dependency Hierarchy:

  • jose4j-0.9.3.jar (Vulnerable Library)

Found in base branch: main

Reachability Analysis

This vulnerability is potentially reachable

org.owasp.webgoat.webwolf.jwt.JWTToken (Application)
  -> org.jose4j.jwt.consumer.JwtConsumer (Extension)
   -> org.jose4j.jwe.AesGcmKeyEncryptionAlgorithm (Extension)
    -> ❌ org.jose4j.jwe.SimpleAeadCipher$CipherOutput (Vulnerable Component)

Vulnerability Details

In jose4j before 0.9.6, an attacker can cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. When this token is processed by the server, it results in significant memory allocation and processing time during decompression.
Mend Note: The description of this vulnerability differs from MITRE.

Publish Date: 2025-12-17

URL: CVE-2024-29371

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.248%

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://osv.dev/vulnerability/GHSA-3677-xxcr-wjqv

Release Date: 2025-12-17

Fix Resolution: 0.9.6

In order to enable automatic remediation, please create workflow rules

CVE-2023-51775

Vulnerable Library - jose4j-0.9.3.jar

The jose.4.j library is a robust and easy to use open source implementation of JSON Web Token (JWT) and the JOSE specification suite (JWS, JWE, and JWK). It is written in Java and relies solely on the JCA APIs for cryptography. Please see https://bitbucket.org/b_c/jose4j/wiki/Home for more info, examples, etc..

Library home page: https://bitbucket.org/b_c/jose4j/

Path to dependency file: /pom.xml

Path to vulnerable library: /home/wss-scanner/.m2/repository/org/bitbucket/b_c/jose4j/0.9.3/jose4j-0.9.3.jar

Dependency Hierarchy:

  • jose4j-0.9.3.jar (Vulnerable Library)

Found in base branch: main

Reachability Analysis

This vulnerability is potentially reachable

org.owasp.webgoat.webwolf.jwt.JWTToken (Application)
  -> org.jose4j.jwt.consumer.JwtConsumerBuilder (Extension)
   -> org.jose4j.jwt.consumer.SimpleKeyResolver (Extension)
    -> ❌ org.jose4j.jwe.JsonWebEncryption (Vulnerable Component)

Vulnerability Details

The jose4j component before 0.9.4 for Java allows attackers to cause a denial of service (CPU consumption) via a large p2c (aka PBES2 Count) value.

Publish Date: 2023-12-25

URL: CVE-2023-51775

Threat Assessment

Exploit Maturity: Not Defined

EPSS: 0.879%

CVSS 3 Score Details (6.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://www.cve.org/CVERecord?id=CVE-2023-51775

Release Date: 2023-12-25

Fix Resolution: 0.9.4

In order to enable automatic remediation, please create workflow rules


In order to enable automatic remediation for this issue, please create workflow rules

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions