CVEfocus › CVE database › CVE-2025-8916

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

CVSS 6.3 MediumEPSS 0.8% (higher than 54% of CVEs)Published 2025-08-13Updated 2026-05-12Assigner: bcorg

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.

CWE-770

What to do

Fixed builds are available from Debian, Maven: see the table below for the fixed version per release.

Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
14Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04bouncycastleNot affected
vulnerable_code_not_present
Ubuntu 25.10bouncycastleNot affected
vulnerable_code_not_present
Ubuntu 24.04bouncycastleFix pending1.77-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2025-8916
Ubuntu 22.04bouncycastleFix pendingUBUNTU-CVE-2025-8916
Ubuntu 20.04bouncycastleFix pendingUBUNTU-CVE-2025-8916
Ubuntu 18.04bouncycastleFix pendingUBUNTU-CVE-2025-8916
Ubuntu 16.04bouncycastleFix pendingUBUNTU-CVE-2025-8916
Debian 14bouncycastleFixed1.80-1DEBIAN-CVE-2025-8916
Debian 13bouncycastleFixed1.80-1DEBIAN-CVE-2025-8916
Debian 12bouncycastleFix pendingDEBIAN-CVE-2025-8916
Red Hat Enterprise Linux 9jmcFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-clientFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-coreFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-jackson2-providerFix pending
Fix deferred
Red Hat Enterprise Linux 9pki-resteasy-servlet-initializerFix pending
Fix deferred
Red Hat Enterprise Linux 9resteasyFix pending
Fix deferred
Red Hat Enterprise Linux 8resteasyFix pending
Fix deferred
Red Hat Enterprise Linux 8resteasy-javadocFix pending
Fix deferred
Maven libraryorg.bouncycastle:bcpkix-fipsFixed2.0.8GHSA-4cx2-fc23-5wg6
Maven libraryorg.bouncycastle:bcpkix-jdk15onFixed1.79GHSA-4cx2-fc23-5wg6
Maven libraryorg.bouncycastle:bcpkix-jdk15to18Fixed1.79GHSA-4cx2-fc23-5wg6
Maven libraryorg.bouncycastle:bcpkix-jdk18onFixed1.79GHSA-4cx2-fc23-5wg6

What the vendor says

As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

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.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.