Denial of Service Vulnerability in libjose4j-java: CVE-2023-51775

libjose4j-java Updated 02 Oct 2025

Summary

29/02/2024
N/A
No i
Medium
6.5

UBUNTU-CVE-2023-51775: 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. Affects libjose4j-java versions 0.7.7-2. No fix is published. How to fix ↓

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

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

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

libjose4j-java is a Java library that provides functionality for JSON Web Encryption (JWE) and JSON Web Signature (JWS). It is widely used in applications that require secure data transmission and authentication. The library is designed to be flexible and supports various encryption algorithms. However, a vulnerability has been identified in versions prior to 0.9.4, which can lead to denial of service attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2023-51775, allows attackers to cause a denial of service by exploiting a large p2c (PBES2 Count) value. This can lead to excessive CPU consumption, potentially rendering the affected application unresponsive. The issue originates from improper handling of input values, which can be manipulated by an attacker to exhaust system resources. The CVSS score for this vulnerability is 6.5, indicating a medium severity level.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation to restrict the p2c value to a safe range. This can help prevent the exploitation of the vulnerability until an official update can be applied.

Conclusion

CVE-2023-51775 is a significant vulnerability in the libjose4j-java library that can lead to denial of service attacks. It is crucial for users of this library to update to the latest patched versions to ensure the security and stability of their applications. Implementing workarounds can provide temporary relief until updates are applied.

See every vulnerability recorded for libjose4j-java →

Share this vulnerability

FAQ

CVE-2023-51775 is a vulnerability in the libjose4j-java library that allows attackers to cause denial of service through excessive CPU consumption.

Versions prior to 0.9.4 of libjose4j-java are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Implement input validation to restrict the p2c value until you can apply the official patch.

The CVSS score for CVE-2023-51775 is 6.5, indicating a medium severity level.

Related vulnerabilities

Recent vulnerabilities recorded for libjose4j-java.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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