Home / Legion of the Bouncy Castle Inc. / BC Java / CVE-2025-8885
CVE-2025-8885: is it exploited, and which versions of Legion of the Bouncy Castle Inc. BC Java are affected and fixed?
CVE-2025-8885 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, 12:38 UTC). Affected: org.bouncycastle:bcprov-jdk14 from 1.0 before 1.78, org.bouncycastle:bcprov-jdk15to18 from 1.0 before 1.78, org.bouncycastle:bcprov-jdk18on from 1.0 before 1.78 and 5 more (GitHub advisory GHSA-67mf-3cr5-8w23). Fixed in 1.78, 1.0.2.6 and 2.0.1 (GitHub advisory GHSA-67mf-3cr5-8w23). Severity: Medium (6.3, CVSS 4.0, from bcorg).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:18 UTC.
What is CVE-2025-8885?
Possible DOS in processing specially formed ASN.1 Object Identifiers
Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. BC Java bcprov on All (API modules), Legion of the Bouncy Castle Inc. BC-FJA bc-fips on All allows Excessive Allocation. This vulnerability is associated with program files https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdenti... https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.Java . This issue affects BC Java: from 1.0 through 1.77; BC-FJA: from 1.0.0 through 1.0.2.5, from 2.0.0 through 2.0.1.
From the CVE record by bcorg, last updated September 12, 2025, 11:09 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 bcprov All | from 1.0 through 1.77 | |
| Legion of the Bouncy Castle Inc. | BC-FJA bc-fips All | from 1.0.0 through 1.0.2.5 from 2.0.0 through 2.0.1 |
As the CVE record by bcorg states it, last updated September 12, 2025. 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:bcprov-jdk14 | >= 1.0, < 1.78 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bcprov-jdk15to18 | >= 1.0, < 1.78 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bcprov-jdk18on | >= 1.0, < 1.78 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bctls-jdk14 | >= 1.0, < 1.78 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bctls-jdk15to18 | >= 1.0, < 1.78 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bctls-jdk18on | >= 1.0, < 1.78 | 1.78 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bc-fips | >= 1.0.0, < 1.0.2.6 | 1.0.2.6 | GHSA-67mf-3cr5-8w23 |
| Maven | org.bouncycastle:bc-fips | >= 2.0.0, < 2.0.1 | 2.0.1 | GHSA-67mf-3cr5-8w23 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 3, 2025. Summary: Bouncy Castle for Java on All (API modules) allows Excessive Allocation.
How severe is CVE-2025-8885?
| 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-8885 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, August 12, 2025)
- EPSS
- 0.64% probability of exploitation activity in the next 30 days, percentile 51.8 (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", or putting in place some other validation for such objects, will mitigate the risk of an exploit by automatically putting a cap on the maximum size of an ASN.1 OBJECT IDENTIFIER.
Where are the vendor advisories and references?
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 12, 2025
- Published
- August 12, 2025, 09:13 UTC
- CVE record updated
- September 12, 2025, 11:09 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, 12:38 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-8885
Is CVE-2025-8885 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.64% 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-8885?
org.bouncycastle:bcprov-jdk14 from 1.0 before 1.78, org.bouncycastle:bcprov-jdk15to18 from 1.0 before 1.78, org.bouncycastle:bcprov-jdk18on from 1.0 before 1.78, org.bouncycastle:bctls-jdk14 from 1.0 before 1.78, org.bouncycastle:bctls-jdk15to18 from 1.0 before 1.78, org.bouncycastle:bctls-jdk18on from 1.0 before 1.78 and 2 more, per the GitHub advisory GHSA-67mf-3cr5-8w23. The tables above give every range the sources list.
Which version fixes CVE-2025-8885?
1.78, 1.0.2.6 and 2.0.1, per the GitHub advisory GHSA-67mf-3cr5-8w23. Check the vendor's advisory before you rely on it.
How severe is CVE-2025-8885?
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-8885?
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.