Home / Legion of the Bouncy Castle Inc. / BC Java / CVE-2025-8916
CVE-2025-8916: is it exploited, and which versions of Legion of the Bouncy Castle Inc. BC Java are affected and fixed?
CVE-2025-8916 is a denial of service (resources allocated without limits) vulnerability in Legion of the Bouncy Castle Inc. BC Java. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 11:08 UTC). Affected: org.bouncycastle:bcpkix-jdk15on from 1.44 before 1.79, org.bouncycastle:bcpkix-jdk15to18 from 1.44 before 1.79, org.bouncycastle:bcpkix-jdk18on from 1.44 before 1.79 and 2 more (GitHub advisory GHSA-4cx2-fc23-5wg6). Fixed in 1.79, 1.0.8 and 2.0.8 (GitHub advisory GHSA-4cx2-fc23-5wg6). Severity: Medium (6.3, CVSS 4.0, from bcorg).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 11:08 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:18 UTC.
What is CVE-2025-8916?
Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer
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.
From the CVE record by bcorg, last updated May 12, 2026, 12:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Legion of the Bouncy Castle Inc. | BC Java bcpkix All | from 1.44 through 1.78 | |
| Legion of the Bouncy Castle Inc. | BC Java bcprov All | from 1.44 through 1.78 | |
| Legion of the Bouncy Castle Inc. | BCPKIX FIPS bcpkix-fips All | from 1.0.0 through 1.0.7 from 2.0.0 through 2.0.7 |
As the CVE record by bcorg states it, last updated May 12, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.bouncycastle:bcpkix-jdk15on | >= 1.44, < 1.79 | 1.79 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-jdk15to18 | >= 1.44, < 1.79 | 1.79 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-jdk18on | >= 1.44, < 1.79 | 1.79 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-fips | >= 1.0.0, < 1.0.8 | 1.0.8 | GHSA-4cx2-fc23-5wg6 |
| Maven | org.bouncycastle:bcpkix-fips | >= 2.0.0, < 2.0.8 | 2.0.8 | GHSA-4cx2-fc23-5wg6 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 13, 2026. Summary: Bouncy Castle for Java bcpkix, bcprov, bcpkix-fips on All (API modules) allows Excessive Allocation.
How severe is CVE-2025-8916?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.3 | CVSS 4.0 | 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 | bcorg |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2025-8916 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, August 13, 2025)
- EPSS
- 0.56% probability of exploitation activity in the next 30 days, percentile 48.1 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-770 Allocation of Resources Without Limits or Throttling
Is there a workaround? (from the CVE record)
Limiting the size of ASN.1 objects that can be loaded from "the wild" will mitigate the risk of an exploit by automatically putting a cap on the maximum size of a Name Constraints structure.
Where are the vendor advisories and references?
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908916
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
Who found and reported it?
- Bing Shi (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- August 13, 2025
- Published
- August 13, 2025, 09:31 UTC
- CVE record updated
- May 12, 2026, 12:02 UTC by bcorg
- NVD
- Deferred, last modified June 17, 2026, 10:07 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:18 UTC; KEV December 3, 2026, 11:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect BC Java?
- Oct 3, 2026CVE-2026-71890 Legion of the Bouncy Castle Inc. BC-JAVA: incorrect authorization
- Oct 3, 2026CVE-2026-71891 Legion of the Bouncy Castle Inc. BC-JAVA: cryptographic signature not verified
- Oct 3, 2026CVE-2026-18040 Legion of the Bouncy Castle Inc. BC-JAVA: timing side channel
- Oct 3, 2026CVE-2026-71885 Legion of the Bouncy Castle Inc. BC-JAVA: improper certificate validation
- Oct 3, 2026CVE-2026-71886 Legion of the Bouncy Castle Inc. BC-JAVA: incorrect authorization
- Oct 3, 2026CVE-2026-71887 Legion of the Bouncy Castle Inc. BC-JAVA: cryptographic signature not verified
- Oct 3, 2026CVE-2026-71888 Legion of the Bouncy Castle Inc. BC-JAVA: improper Validation of Integrity Check Value
- Oct 3, 2026CVE-2026-71889 Legion of the Bouncy Castle Inc. BC-JAVA: improper certificate validation
Questions about CVE-2025-8916
Is CVE-2025-8916 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 11:08 UTC. FIRST's EPSS gives it a 0.56% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Legion of the Bouncy Castle Inc. BC Java are affected by CVE-2025-8916?
org.bouncycastle:bcpkix-jdk15on from 1.44 before 1.79, org.bouncycastle:bcpkix-jdk15to18 from 1.44 before 1.79, org.bouncycastle:bcpkix-jdk18on from 1.44 before 1.79, org.bouncycastle:bcpkix-fips from 1.0.0 before 1.0.8 and org.bouncycastle:bcpkix-fips from 2.0.0 before 2.0.8, per the GitHub advisory GHSA-4cx2-fc23-5wg6. The tables above give every range the sources list.
Which version fixes CVE-2025-8916?
1.79, 1.0.8 and 2.0.8, per the GitHub advisory GHSA-4cx2-fc23-5wg6. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-8916?
Medium (6.3, CVSS 4.0, from bcorg). The severity table above shows each score with its source.
Where is the official record of CVE-2025-8916?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.