# CVE-2023-51775: jose4j denial of service via specifically crafted JWE

> Attackers can cause denial of service via CPU exhaustion by sending a large PBES2 count value to the jose4j Java library.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 25 Dec 2023
- **Updated:** 3 Nov 2025
- **Also known as:** DEBIAN-CVE-2023-51775, GHSA-6qvw-249j-h44c, MINI-689x-234f-9j38, MINI-74f5-5xx3-45rh, ROOT-APP-MAVEN-CVE-2023-51775, SUSE-SU-2024:1507-1, SUSE-SU-2024:1532-1, UBUNTU-CVE-2023-51775

## What is CVE-2023-51775?

CVE-2023-51775 is a medium-severity denial of service vulnerability in n/a, published on 25 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

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.

Weakness: CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2023-51775?

2 open source packages ship an affected version, including org.bitbucket.b_c:jose4j. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.bitbucket.b_c:jose4j` | Maven | All versions | 0.9.4 |
| `org.bitbucket.b_c:jose4j` | Maven | All versions | 0.9.4 |
| `release-notes-susemanager-proxy` | SUSE:Manager Proxy 4.3 | All versions | 4.3.12-150400.3.82.3 |
| `mgr-daemon` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.9-150400.3.15.5 |
| `spacecmd` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.27-150400.3.36.5 |
| `spacewalk-backend` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.28-150400.3.41.7 |
| `spacewalk-certs-tools` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.23-150400.3.28.5 |
| `spacewalk-client-tools` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.19-150400.3.27.5 |
| `spacewalk-web` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.38-150400.3.42.6 |
| `uyuni-common-libs` | SUSE:Manager Proxy Module 4.3 | All versions | 4.3.10-150400.3.18.4 |
| `release-notes-susemanager` | SUSE:Manager Server 4.3 | All versions | 4.3.12-150400.3.108.2 |
| `cobbler` | SUSE:Manager Server Module 4.3 | All versions | 3.3.3-150400.5.42.5 |
| `image-sync-formula` | SUSE:Manager Server Module 4.3 | All versions | 0.1.1711646883.4a44375-150400.3.18.4 |
| `inter-server-sync` | SUSE:Manager Server Module 4.3 | All versions | 0.3.3-150400.3.30.4 |
| `jose4j` | SUSE:Manager Server Module 4.3 | All versions | 0.5.1-150400.3.9.4 |
| `smdba` | SUSE:Manager Server Module 4.3 | All versions | 1.7.13-0.150400.4.12.4 |
| `spacecmd` | SUSE:Manager Server Module 4.3 | All versions | 4.3.27-150400.3.36.5 |
| `spacewalk-backend` | SUSE:Manager Server Module 4.3 | All versions | 4.3.28-150400.3.41.7 |
| `spacewalk-certs-tools` | SUSE:Manager Server Module 4.3 | All versions | 4.3.23-150400.3.28.5 |
| `spacewalk-client-tools` | SUSE:Manager Server Module 4.3 | All versions | 4.3.19-150400.3.27.5 |
| `spacewalk-config` | SUSE:Manager Server Module 4.3 | All versions | 4.3.13-150400.3.15.5 |
| `spacewalk-java` | SUSE:Manager Server Module 4.3 | All versions | 4.3.73-150400.3.79.1 |
| `spacewalk-web` | SUSE:Manager Server Module 4.3 | All versions | 4.3.38-150400.3.42.6 |
| `subscription-matcher` | SUSE:Manager Server Module 4.3 | All versions | 0.37-150400.3.22.4 |
| `supportutils-plugin-susemanager` | SUSE:Manager Server Module 4.3 | All versions | 4.3.11-150400.3.21.4 |
| `susemanager` | SUSE:Manager Server Module 4.3 | All versions | 4.3.35-150400.3.48.6 |
| `susemanager-docs_en` | SUSE:Manager Server Module 4.3 | All versions | 4.3-150400.9.56.4 |
| `susemanager-schema` | SUSE:Manager Server Module 4.3 | All versions | 4.3.25-150400.3.39.5 |
| `susemanager-sls` | SUSE:Manager Server Module 4.3 | All versions | 4.3.41-150400.3.47.6 |
| `susemanager-sync-data` | SUSE:Manager Server Module 4.3 | All versions | 4.3.17-150400.3.25.4 |
| `uyuni-common-libs` | SUSE:Manager Server Module 4.3 | All versions | 4.3.10-150400.3.18.4 |
| `uyuni-reportdb-schema` | SUSE:Manager Server Module 4.3 | All versions | 4.3.10-150400.3.15.6 |

Products: Jose4j Project Jose4j.

## How do I fix CVE-2023-51775?

Upgrade org.bitbucket.b_c:jose4j to 0.9.4 or later.

## Is CVE-2023-51775 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-51775 exists.

## Other vulnerabilities in n/a

- [CVE-2024-29371](https://insights.sbomify.com/CVE-2024-29371/): jose4j is vulnerable to DoS via compressed JWE content (high 7.5)
- [CVE-2023-31582](https://insights.sbomify.com/CVE-2023-31582/): jose4j uses weak cryptographic algorithm (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-51775 and fix it if it is affected.

What it is: CVE-2023-51775 is a medium-severity denial of service vulnerability in n/a, published on 25 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-51775 exists.

Affected packages and fixed versions:
- org.bitbucket.b_c:jose4j (Maven): affected all versions; fixed in 0.9.4
- org.bitbucket.b_c:jose4j (Maven): affected all versions; fixed in 0.9.4

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-51775/ (Markdown: https://insights.sbomify.com/CVE-2023-51775/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-51775
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-51775
- OSV: https://osv.dev/vulnerability/CVE-2023-51775

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-51775/
Summaries are generated and may contain mistakes; the official description above is the record.
