MEDIUM
GHSA-67mf-3cr5-8w23
Bouncy Castle for Java on All (API modules) allows Excessive Allocation
Quick fix
GHSA-67mf-3cr5-8w23 — org.bouncycastle:bcprov-jdk14: upgrade to the fixed version with the command below.
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk14Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/org.bouncycastle:bcprov-jdk14
Introduced in:
1.0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk14Maven/org.bouncycastle:bcprov-jdk15to18
Introduced in:
1.0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk15to18Maven/org.bouncycastle:bcprov-jdk18on
Introduced in:
1.0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bcprov-jdk18onMaven/org.bouncycastle:bctls-jdk14
Introduced in:
1.0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk14Maven/org.bouncycastle:bctls-jdk15to18
Introduced in:
1.0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk15to18Maven/org.bouncycastle:bctls-jdk18on
Introduced in:
1.0Fixed in: 1.78Fix
# pom.xml: bump <version>1.78</version> for org.bouncycastle:bctls-jdk18onMaven/org.bouncycastle:bc-fips
Introduced in:
1.0.0Fixed in: 1.0.2.6Fix
# pom.xml: bump <version>1.0.2.6</version> for org.bouncycastle:bc-fipsMaven/org.bouncycastle:bc-fips
Introduced in:
2.0.0Fixed in: 2.0.1Fix
# pom.xml: bump <version>2.0.1</version> for org.bouncycastle:bc-fipsReferences
- https://nvd.nist.gov/vuln/detail/CVE-2025-8885[ADVISORY]
- https://github.com/bcgit/bc-java/commit/3790993df5d28f661a64439a8664343437ed3865[WEB]
- https://github.com/bcgit/bc-java[PACKAGE]
- https://github.com/bcgit/bc-java/blob/main/core/src/main/java/org/bouncycastle/asn1/ASN1ObjectIdentifier.java[WEB]
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908885[WEB]