Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-8916

MEDIUM 6.3EPSS 54%

Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer

Also known as GHSA-4cx2-fc23-5wg6

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.

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:AmberOpen in CVSS calculator
Show all 15 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
EPSS
0.81% chance of exploitation in 30 days (percentile 54, 2026-11-26)
CWE
CWE-770
Published
Modified

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

Package / productAffectedFixedSource
Maven org.bouncycastle:bcpkix-jdk15on>= 1.44, < 1.791.79osv
Maven org.bouncycastle:bcpkix-jdk15to18>= 1.44, < 1.791.79osv
Maven org.bouncycastle:bcpkix-jdk18on>= 1.44, < 1.791.79osv
Maven org.bouncycastle:bcpkix-fips>= 1.0.0, < 1.0.81.0.8, 2.0.8osv
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors