CVE-2025-8916
Bouncy Castle for Java bcpkix, bcprov, bcpkix-fips on All (API modules) allows Excessive Allocation
Description
Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. Bouncy Castle for Java bcpkix, bcprov, 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/PKIXCertP... 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/PKIXCertPathRevi... https://github.Com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.java .
This issue affects Bouncy Castle for Java: from BC 1.44 through 1.78, from BCPKIX FIPS 1.0.0 through 1.0.7, from BCPKIX FIPS 2.0.0 through 2.0.7.
Affected Maven artifacts (4)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle » bcpkix-fips | >= 1.0.0, < 1.0.8>= 2.0.0, < 2.0.8 | 1.0.8, 2.0.8 |
| org.bouncycastle » bcpkix-jdk15on | >= 1.44, < 1.79 | 1.79 |
| org.bouncycastle » bcpkix-jdk15to18 | >= 1.44, < 1.79 | 1.79 |
| org.bouncycastle » bcpkix-jdk18on | >= 1.44, < 1.79 | 1.79 |
Blast radius
64% of the dependent artifacts (23,556) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 118,749 |
| 2 hops | 544,530 |
| 3 hops | 822,539 |
| 4 hops | 698,724 |
| 5 hops | 346,475 |
| 6 hops | 151,177 |
Most used dependents
- org.testcontainers » testcontainers4,109 usages
- org.apache.poi » poi-ooxml3,690 usages
- io.netty » netty-all3,584 usages
- org.apache.spark » spark-sql3,174 usages
- org.apache.spark » spark-core2,899 usages
- com.diffplug.spotless » spotless-maven-plugin2,873 usages
- org.eclipse.jgit » org.eclipse.jgit2,222 usages
- com.android.tools.build » gradle2,197 usages
- org.seleniumhq.selenium » selenium-java2,089 usages
- com.nimbusds » nimbus-jose-jwt1,826 usages
- org.apache.hadoop » hadoop-client1,796 usages
- org.testcontainers » postgresql1,441 usages
- org.springframework.cloud » spring-cloud-starter-openfeign1,389 usages
- org.jetbrains.kotlin » kotlin-gradle-plugin1,131 usages
- io.fabric8 » docker-maven-plugin1,092 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-8916
- Webhttps://github.com/bcgit/bc-java/commit/310b30a4fbf36d13f6cc201ffa7771715641e67e
- Webhttps://github.com/bcgit/bc-java/commit/ff444a479942d88de64004dc82c3ee32a9e9075a
- Webhttps://cert-portal.siemens.com/productcert/html/ssa-032379.html
- Packagehttps://github.com/bcgit/bc-java
- Webhttps://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908916
