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

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


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59952HIGH8.7
  • JavaJava
  • io.minio:minio
NoYesSep 30, 2025
CVE-2025-43813MEDIUM6.9
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesSep 29, 2025
CVE-2025-43817MEDIUM4.8
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesSep 29, 2025
CVE-2025-43812MEDIUM4.8
  • JavaJava
  • com.liferay.portal:release.portal.bom
NoYesSep 29, 2025
CVE-2025-43820MEDIUM4.8
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesSep 29, 2025

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