CVE-2025-8916: 
Java vulnerability analysis and mitigation

Overview

Allocation of Resources Without Limits or Throttling vulnerability (CVE-2025-8916) was discovered in Legion of the Bouncy Castle Inc. Bouncy Castle for Java affecting bcpkix, bcprov, and bcpkix-fips modules. The vulnerability was disclosed on August 13, 2025, affecting Bouncy Castle for Java versions from BC 1.44 through 1.78, BCPKIX FIPS versions 1.0.0 through 1.0.7, and BCPKIX FIPS versions 2.0.0 through 2.0.7 (NVD).

Technical details

The vulnerability exists in the PKIXCertPathReviewer class which did not implement limits on the size of name constraints objects. This implementation oversight could lead to excessive resource allocation when processing large name constraint structures. The vulnerability has been assigned a CVSS 4.0 Base Score of 6.3 (MEDIUM) with the vector string 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 (BC Wiki).

Impact

When exploited, this vulnerability could be used as a source of a Denial of Service (DOS) attack. The impact is specifically relevant when the PKIXCertPathReviewer class is processing certificate paths of unknown origin without proper validation (BC Wiki).

Exploitability

For an attack to be successful, the PKIXCertPathReviewer class must be in use by the target application and must be consuming certificate paths of unknown origin without any form of other validation (BC Wiki).

Mitigation and workarounds

The vulnerability has been fixed in BC Java 1.79, BCPKIX FIPS 1.0.8, and BCPKIX FIPS 2.0.8. The fix involves limiting the size of ASN.1 objects that can be loaded from untrusted sources, which automatically caps the maximum size of a Name Constraints structure that the PKIXCertPathReviewer can consume (BC Wiki).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

bouncycastle

Affected

sid

bouncycastle: 1.80-1

Fixed

trixie

bouncycastle: 1.80-1

Fixed

Ubuntu

Fixed

devel

bouncycastle

Not Affected

noble

bouncycastle

Affected

noble (esm-apps)

bouncycastle: 1.77-1ubuntu0.1~esm1

Fixed

questing

bouncycastle

Not Affected

resolute

bouncycastle

Not Affected

resolute (esm-apps)

bouncycastle

Not Affected

RHEL / CentOS

Affected

OpenShift

bcmail-jdk15on

Affected

RHEL 8

pki-core:10.6/resteasy.src

Affected

RHEL 9

jmc.src

Affected

Source: This report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-102695HIGH8.2
  • Java logoJava
  • org.omnifaces:omnifaces
NoYesOct 14, 2026
CVE-2026-54641HIGH7.7
  • Java logoJava
  • io.openremote:openremote-manager
NoYesOct 13, 2026
CVE-2026-54640HIGH7.6
  • Java logoJava
  • io.openremote:openremote-agent
NoYesOct 13, 2026
CVE-2026-54700MEDIUM6.9
  • Java logoJava
  • org.connectbot.sshlib:sshlib
NoNoOct 13, 2026
CVE-2026-54697MEDIUM6.7
  • Java logoJava
  • org.connectbot.sshlib:sshlib
NoNoOct 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management