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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
6.3
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.
- Record
CVE-2025-8885- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-770
- Updated
- 2026-11-02
EUVDEUVD-2025-24231
6.3
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.
- Record
EUVD-2025-24231- CVSS 4.0
- 6.3 Medium
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-67mf-3cr5-8w23
6.3
Bouncy Castle for Java on All (API modules) allows Excessive Allocation
A resource allocation vulnerability exists in Bouncy Castle for Java (by Legion of the Bouncy Castle Inc.) that affects all API modules. The vulnerability allows attackers to cause excessive memory allocation through unbounded resource consumption, potentially leading to denial of service. The issue is located in the ASN1ObjectIdentifier.java file in the core module.
This issue affects Bouncy Castle for Java: from BC 1.0 through 1.77, from BC-FJA 1.0.0 through 2.0.0.
- Record
GHSA-67mf-3cr5-8w23- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-770
- Updated
- 2026-11-02
NVD
6.3
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.
- Record
CVE-2025-8885- CVSS 4.0
- 6.3 Medium
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:X/R:U/V:X/RE:M/U:Amber - Weakness
- CWE-770
- Updated
- 2026-11-02
OSV
6.3
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.
- Record
CVE-2025-8885- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-770
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-8885
6.3
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.
- Record
DEBIAN-CVE-2025-8885- CVSS 4.0
- 6.3 Medium
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:P/AU:X/R:U/V:X/RE:M/U:Amber - Updated
- 2026-11-02
Show 5 moreShow less
OSVGHSA-67mf-3cr5-8w23
6.3
Bouncy Castle for Java on All (API modules) allows Excessive Allocation
A resource allocation vulnerability exists in Bouncy Castle for Java (by Legion of the Bouncy Castle Inc.) that affects all API modules. The vulnerability allows attackers to cause excessive memory allocation through unbounded resource consumption, potentially leading to denial of service. The issue is located in the ASN1ObjectIdentifier.java file in the core module.
This issue affects Bouncy Castle for Java: from BC 1.0 through 1.77, from BC-FJA 1.0.0 through 2.0.0.
- Record
GHSA-67mf-3cr5-8w23- CVSS 4.0
- 6.3 Medium
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 - Weakness
- CWE-770
- Updated
- 2026-11-02
OSVROOT-APP-MAVEN-CVE-2025-8885
5.3
CVE-2025-8885 in org.bouncycastle:bc-fips - Patched by Root
Root has patched CVE-2025-8885 in the org.bouncycastle:bc-fips package for Root:Maven. Multiple fixed versions available.
- Record
ROOT-APP-MAVEN-CVE-2025-8885- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-8885
6.3
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.
- Record
UBUNTU-CVE-2025-8885- CVSS 4.0
- 6.3 Medium
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 - Updated
- 2026-11-02
OSVCLSA-2026-1769818135 No score
TuxCare security update for org.bouncycastle (5 CVEs)
TuxCare rebuilt 4 org.bouncycastle packages to address 5 CVEs. Fixed in 1.76-tuxcare.1.
- Record
CLSA-2026-1769818135- Updated
- 2026-11-02
OSVCLSA-2026-1791306023 No score
TuxCare security update for org.bouncycastle (7 CVEs)
TuxCare rebuilt 11 org.bouncycastle packages to address 7 CVEs. Fixed in 1.77-tuxcare.3.
- Record
CLSA-2026-1791306023- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.bouncycastle:bcprov-jdk14Maven |
1.0 up to 1.78 | 1.78 |
org.bouncycastle:bcprov-jdk15to18Maven |
1.0 up to 1.78 | 1.78 |
org.bouncycastle:bcprov-jdk18onMaven |
1.0 up to 1.78 | 1.78 |
org.bouncycastle:bctls-jdk14Maven |
1.0 up to 1.78 | 1.78 |
org.bouncycastle:bctls-jdk15to18Maven |
1.0 up to 1.78 | 1.78 |
org.bouncycastle:bctls-jdk18onMaven |
1.0 up to 1.78 | 1.78 |
org.bouncycastle:bc-fipsMaven |
2.0.0 to 2.0.0 | 2.0.1 |
org.bouncycastle:bc-fipsMaven |
1.0.0 up to 1.0.2.6 | 1.0.2.6 |
org.bouncycastle:bcprov-jdk15to18TuxCare:Maven From an advisory covering 5 CVEs |
1.76 up to 1.76-tuxcare.1 | 1.76-tuxcare.1 |
org.bouncycastle:bcprov-jdk18onTuxCare:Maven From an advisory covering 5 CVEs |
1.76 up to 1.76-tuxcare.1 | 1.76-tuxcare.1 |
Show 33 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.bouncycastle:bctls-jdk15to18TuxCare:Maven From an advisory covering 5 CVEs |
1.76 up to 1.76-tuxcare.1 | 1.76-tuxcare.1 |
org.bouncycastle:bctls-jdk18onTuxCare:Maven From an advisory covering 5 CVEs |
1.76 up to 1.76-tuxcare.1 | 1.76-tuxcare.1 |
org.bouncycastle:bcpkix-debug-jdk15to18TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcpkix-debug-jdk18onTuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcpkix-jdk14TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcpkix-jdk15to18TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcpkix-jdk18onTuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcprov-jdk14TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcprov-jdk15to18TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bcprov-jdk18onTuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bctls-jdk14TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bctls-jdk15to18TuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
org.bouncycastle:bctls-jdk18onTuxCare:Maven From an advisory covering 7 CVEs |
1.77 up to 1.77-tuxcare.3, plus listed versions 1.77-tuxcare.11.77-tuxcare.2 |
1.77-tuxcare.3 |
bouncycastleDebian:12 |
All versions, plus listed versions 1.72-21.77-11.80-11.80-21.80-3 |
None known |
bouncycastleDebian:13 |
before 1.80-1 | 1.80-1 |
bouncycastleDebian:14 |
before 1.80-1 | 1.80-1 |
org.bouncycastle:bcprov-jdk14Maven |
1.0 up to 1.78, plus listed versions 1.381.431.441.451.46 Show 29 moreShow less1.471.481.491.501.511.531.541.551.561.571.581.591.601.611.621.631.641.651.671.681.691.701.711.721.731.741.751.761.77 |
1.78 |
org.bouncycastle:bcprov-jdk15to18Maven |
1.0 up to 1.78, plus listed versions 1.631.641.651.661.67 Show 10 moreShow less1.681.691.701.711.721.731.741.751.761.77 |
1.78 |
org.bouncycastle:bcprov-jdk18onMaven |
1.0 up to 1.78, plus listed versions 1.711.71.11.721.731.741.751.761.77 |
1.78 |
org.bouncycastle:bctls-jdk14Maven |
1.0 up to 1.78, plus listed versions 1.611.621.631.641.65 Show 11 moreShow less1.671.681.691.701.711.721.731.741.751.761.77 |
1.78 |
org.bouncycastle:bctls-jdk15to18Maven |
1.0 up to 1.78, plus listed versions 1.631.641.651.661.67 Show 10 moreShow less1.681.691.701.711.721.731.741.751.761.77 |
1.78 |
org.bouncycastle:bctls-jdk18onMaven |
1.0 up to 1.78, plus listed versions 1.711.71.11.721.731.741.751.761.77 |
1.78 |
org.bouncycastle:bc-fipsMaven |
1.0.0 up to 1.0.2.6, plus listed versions 1.0.11.0.21.0.2.11.0.2.31.0.2.41.0.2.5 |
1.0.2.6 |
org.bouncycastle:bc-fipsMaven |
2.0.0 up to 2.0.1 | 2.0.1 |
org.bouncycastle:bc-fipsRoot:Maven |
before 1.0.2.5-aikido.9307 | 1.0.2.5-aikido.93071.0.2.5-aikido.41.0.2.6-aikido.1 |
org.bouncycastle:bcprov-jdk18onRoot:Maven |
before 1.77-aikido.6 | 1.77-aikido.61.77-aikido.51.75-aikido.41.78-aikido.31.78-aikido.2 |
io.root.org.bouncycastle:bc-fipsRoot:Maven |
before 1.0.2.5-root.io.9307 | 1.0.2.5-root.io.93071.0.2.5-root.io.11.0.2.5-root.io.21.0.2.5-root.io.31.0.2.5-root.io.41.0.2.6-root.io.1 |
io.root.org.bouncycastle:bcprov-jdk18onRoot:Maven |
before 1.77-root.io.6 | 1.77-root.io.61.77-root.io.51.75-root.io.41.78-root.io.31.78-root.io.2 |
bouncycastleUbuntu:Pro:16.04:LTS |
All versions, plus listed versions 1.49+dfsg-3ubuntu11.51-4ubuntu11.51-4ubuntu1+esm1 |
None known |
bouncycastleUbuntu:Pro:18.04:LTS |
All versions, plus listed versions 1.57-11.58-11.59-11.59-1ubuntu0.1~esm1 |
None known |
bouncycastleUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 1.61-11.61-1ubuntu0.1~esm1 |
None known |
bouncycastleUbuntu:22.04:LTS |
All versions, plus listed versions 1.68-21.68-41.68-5 |
None known |
bouncycastleUbuntu:24.04:LTS |
All versions, plus listed versions 1.72-21.77-1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-8885 is a medium vulnerability (CVSS 6.3) in Legion Of The Bouncy Castle Inc. Bc Java, published August 12, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.59%, the 48th percentile. Fixed in org.bouncycastle:bcprov-jdk14 1.78.
References
github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885
nvd.nist.gov/vuln/detail/CVE-2025-8885
github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865
github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java
github.com/advisories/GHSA-67mf-3cr5-8w23
repo1.maven.org/maven2/org/bouncycastle