Vulnerability · Published Aug 13, 2025 · Assigned by bcorg
CVE-2025-8916Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer
Medium 6.3
In plain English
A medium-severity resource allocation without limits in BC Java from Legion of the Bouncy Castle Inc.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 43% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. BC Java bcpkix on All (API modules), Legion of the Bouncy Castle Inc. BC Java bcprov on All (API modules), Legion of the Bouncy Castle Inc. BCPKIX FIPS bcpkix-fips on All (API modules) allows Excessive Allocation. This vulnerability is associated with program files https://github.Com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertPathReviewer.Java, https://github.Com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.Java. This issue affects BC Java: from 1.44 through 1.78; BC Java: from 1.44 through 1.78; BCPKIX FIPS: from 1.0.0 through 1.0.7, from 2.0.0 through 2.0.7.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | bouncycastle | no fix listed | DEBIAN-CVE-2025-8916 |
| Debian:13 | bouncycastle | 1.80-1 | DEBIAN-CVE-2025-8916 |
| Debian:14 | bouncycastle | 1.80-1 | DEBIAN-CVE-2025-8916 |
| Maven | org.bouncycastle:bcpkix-fips | 1.0.8 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-fips | 2.0.8 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-jdk15on | 1.79 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-jdk15to18 | 1.79 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-jdk18on | 1.79 | GHSA-4cx2-fc23-5wg6 |
| Ubuntu:22.04:LTS | bouncycastle | no fix listed | UBUNTU-CVE-2025-8916 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Legion of the Bouncy Castle Inc. | BC Java | 1.44 – through 1.78 |
| Legion of the Bouncy Castle Inc. | BC Java | 1.44 – through 1.78 |
| Legion of the Bouncy Castle Inc. | BCPKIX FIPS | 1.0.0 – through 1.0.72.0.0 – through 2.0.7 |
Weakness: CWE-770 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/S:P/R:U/RE:M/U:Amber