# CVE-2025-8916: Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.3
- **CVSS:** 6.3 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; S: P; R: U; RE: M; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.81% (percentile 54, 2026-11-26)
- **CWE:** CWE-770
- **Aliases:** GHSA-4cx2-fc23-5wg6
- **Published:** 2025-08-13T09:31:21.181Z
- **Modified:** 2026-09-10T03:50:26.717Z

## Who should check

- Projects that depend on Maven package org.bouncycastle:bcpkix-jdk15on (\>= 1.44, \< 1.79)
- Projects that depend on Maven package org.bouncycastle:bcpkix-jdk15to18 (\>= 1.44, \< 1.79)
- Projects that depend on Maven package org.bouncycastle:bcpkix-jdk18on (\>= 1.44, \< 1.79)
- Projects that depend on Maven package org.bouncycastle:bcpkix-fips (\>= 1.0.0, \< 1.0.8)
- Anyone running Legion of the Bouncy Castle Inc. BC Java \>= 1.44, \<= 1.78
- Anyone running Legion of the Bouncy Castle Inc. BCPKIX FIPS \>= 1.0.0, \<= 1.0.7; \>= 2.0.0, \<= 2.0.7

## Description

Allocation of Resources Without Limits or Throttling vulnerability in Legion of the Bouncy Castle Inc. BC Java bcpkix on All (API modules), Legion of the Bouncy Castle Inc. BC Java bcprov on All (API modules), Legion of the Bouncy Castle Inc. BCPKIX FIPS 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/PKIXCertPathReviewer.Java, https://github.Com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.Java.

This issue affects BC Java: from 1.44 through 1.78; BC Java: from 1.44 through 1.78; BCPKIX FIPS: from 1.0.0 through 1.0.7, from 2.0.0 through 2.0.7.

## Affected and fixed versions

- Maven `org.bouncycastle:bcpkix-jdk15on`: affected \>= 1.44, \< 1.79; fixed 1.79 (osv)
- Maven `org.bouncycastle:bcpkix-jdk15to18`: affected \>= 1.44, \< 1.79; fixed 1.79 (osv)
- Maven `org.bouncycastle:bcpkix-jdk18on`: affected \>= 1.44, \< 1.79; fixed 1.79 (osv)
- Maven `org.bouncycastle:bcpkix-fips`: affected \>= 1.0.0, \< 1.0.8; fixed 1.0.8, 2.0.8 (osv)
- Legion of the Bouncy Castle Inc. BC Java: \>= 1.44, \<= 1.78 (cvelist)
- Legion of the Bouncy Castle Inc. BC Java: \>= 1.44, \<= 1.78 (cvelist)
- Legion of the Bouncy Castle Inc. BCPKIX FIPS: \>= 1.0.0, \<= 1.0.7; \>= 2.0.0, \<= 2.0.7 (cvelist)

## Mitigation

- Upgrade org.bouncycastle:bcpkix-jdk15on to 1.79 or later.
- Upgrade org.bouncycastle:bcpkix-jdk15to18 to 1.79 or later.
- Upgrade org.bouncycastle:bcpkix-jdk18on to 1.79 or later.
- Upgrade org.bouncycastle:bcpkix-fips to one of 1.0.8, 2.0.8 (or later in the same release line).
- Vendor workaround: Limiting the size of ASN.1 objects that can be loaded from "the wild" will mitigate the risk of an exploit by automatically putting a cap on the maximum size of a Name Constraints structure.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-8916. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-8916.md
Affected: org.bouncycastle:bcpkix-jdk15on >= 1.44, < 1.79; org.bouncycastle:bcpkix-jdk15to18 >= 1.44, < 1.79; org.bouncycastle:bcpkix-jdk18on >= 1.44, < 1.79; org.bouncycastle:bcpkix-fips >= 1.0.0, < 1.0.8
Fixed in: 1.79, 1.0.8, 2.0.8

Steps:
1. Search this machine and project for org.bouncycastle:bcpkix-jdk15on (Maven), org.bouncycastle:bcpkix-jdk15to18 (Maven), org.bouncycastle:bcpkix-jdk18on (Maven), org.bouncycastle:bcpkix-fips (Maven), Legion of the Bouncy Castle Inc. BC Java, Legion of the Bouncy Castle Inc. BCPKIX FIPS: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-8916 being exploited?

There is no confirmed exploitation: CVE-2025-8916 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.81% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-8916?

Medium: CVSS 6.3 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2025-8916?

org.bouncycastle:bcpkix-jdk15on \>= 1.44, \< 1.79; org.bouncycastle:bcpkix-jdk15to18 \>= 1.44, \< 1.79; org.bouncycastle:bcpkix-jdk18on \>= 1.44, \< 1.79; org.bouncycastle:bcpkix-fips \>= 1.0.0, \< 1.0.8.

### Is there a fix for CVE-2025-8916?

Yes. Fixed in 1.79, 1.0.8, 2.0.8. Upgrade org.bouncycastle:bcpkix-jdk15on to 1.79 or later. Upgrade org.bouncycastle:bcpkix-jdk15to18 to 1.79 or later. Upgrade org.bouncycastle:bcpkix-jdk18on to 1.79 or later. Upgrade org.bouncycastle:bcpkix-fips to one of 1.0.8, 2.0.8 (or later in the same release line). Vendor workaround: Limiting the size of ASN.1 objects that can be loaded from "the wild" will mitigate the risk of an exploit by automatically putting a cap on the maximum size of a Name Constraints structure.

### How do I check if I'm affected by CVE-2025-8916?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-8916>
- patch: <https://github.com/bcgit/bc-java/commit/310b30a4fbf36d13f6cc201ffa7771715641e67e>
- patch: <https://github.com/bcgit/bc-java/commit/ff444a479942d88de64004dc82c3ee32a9e9075a>
- other: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908916>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>
- other: <https://github.com/bcgit/bc-java>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-8916>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-4cx2-fc23-5wg6> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-8916> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-8916>
