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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.bouncycastle:bc-fips | >= 1.0.0, < 1.0.2.6, >= 2.0.0, < 2.0.1 | 1.0.2.6, 2.0.1 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk14 | >= 1.0, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk15to18 | >= 1.0, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bcprov-jdk18on | >= 1.0, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-jdk14 | >= 1.0, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-jdk15to18 | >= 1.0, < 1.78 | 1.78 |
| Java / Kotlin (Maven) | org.bouncycastle:bctls-jdk18on | >= 1.0, < 1.78 | 1.78 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-8885
- https://github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865
- https://github.com/bcgit/bc-java
- https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885
- CVSS 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- Weakness (CWE)
CWE-770- Platform
- Java / Kotlin (Maven)
- Package
org.bouncycastle:bc-fips, org.bouncycastle:bcprov-jdk14, org.bouncycastle:bcprov-jdk15to18- Disclosed
- 12.08.2025
- Updated
- 11.10.2026 13:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-67mf-3cr5-8w23 - CC BY 4.0
Vulnerability history: org.bouncycastle:bctls-jdk18on
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 4
- First → latest
- 05.2024 08.2025
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Medium 4
Disclosures per year
- 2024: 3
- 2025: 1
- 2026: 0
-
Bouncy Castle for Java on All (API modules) allows Excessive Allocation this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.