Denial of Service Vulnerability in jose4j

org.bitbucket.b_c:jose4j Updated 02 Oct 2025

Summary

29/02/2024
Yes i
Moderate
6.5

CVE-2023-51775: jose4j denial of service via specifically crafted JWE. Affects org.bitbucket.b_c:jose4j versions < 0.9.4. Fixed in 0.9.4. How to fix ↓

Also tracked for

The same CVE-2023-51775 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

jose4j is a Java library that provides support for the JSON Object Signing and Encryption (JOSE) specifications. It allows developers to work with JSON Web Tokens (JWTs) for secure communication and authentication. The library is widely used in Java applications for implementing JWT-based authentication and authorization mechanisms. However, a vulnerability has been discovered in versions prior to 0.9.4 that can lead to a denial of service (DoS) attack.

Vulnerability Detail

The vulnerability in jose4j arises from a lack of input validation when processing a specific parameter called p2c (PBES2 Count). An attacker can exploit this by sending a specially crafted request with a large p2c value, causing the library to consume excessive CPU resources. This can result in a DoS condition, where the affected application becomes unresponsive or slows down significantly. The impact of this vulnerability can be severe, as it can disrupt the normal operation of the application and potentially affect its availability.

How To Fix

Minimum fixed version

0.9.4

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is necessary to upgrade to the fixed version of the jose4j library to mitigate the risk of a DoS attack.

Conclusion

The denial of service vulnerability in jose4j can have severe consequences for applications using the library. It is crucial to upgrade to version 0.9.4 or later to mitigate the risk of a DoS attack. For further assistance and support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for org.bitbucket.b_c:jose4j →

Share this vulnerability

FAQ

jose4j is a Java library for working with JSON Web Tokens (JWTs) and implementing secure communication and authentication mechanisms.

The vulnerability can lead to a denial of service (DoS) condition, causing the affected application to become unresponsive or slow down significantly.

To fix this vulnerability, you need to upgrade to version 0.9.4 or later of the jose4j library.

No, there is no known workaround for this vulnerability. Upgrading to the fixed version is the recommended solution.

You can find more information about the vulnerability in the advisory published on the GitHub Advisory Database.

Related vulnerabilities

Recent vulnerabilities recorded for org.bitbucket.b_c:jose4j.

How To Fix

Minimum fixed version

0.9.4

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback