{"id":"CVE-2025-8916","state":"PUBLISHED","title":"Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer","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.\n\nThis 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.","publishedAt":"2025-08-13T09:31:21.181Z","updatedAt":"2026-05-12T12:02:38.443Z","severity":{"score":6.3,"label":"Medium","version":"4.0","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","source":"bcorg"},"assigner":"bcorg","products":["Legion of the Bouncy Castle Inc. BC Java","Legion of the Bouncy Castle Inc. BCPKIX FIPS"],"affected":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC Java","packageName":"bcpkix","defaultStatus":"unaffected","versions":[{"version":"1.44","status":"affected","lessThanOrEqual":"1.78","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["https://github.com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertPathReviewer.java"],"repo":"https://github.com/bcgit/bc-java"},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC Java","packageName":"bcprov","defaultStatus":"unaffected","versions":[{"version":"1.44","status":"affected","lessThanOrEqual":"1.78","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["https://github.com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.java"],"repo":"https://github.com/bcgit/bc-java"},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BCPKIX FIPS","packageName":"bcpkix-fips","defaultStatus":"unaffected","versions":[{"version":"1.0.0","status":"affected","lessThanOrEqual":"1.0.7","versionType":"maven"},{"version":"2.0.0","status":"affected","lessThanOrEqual":"2.0.7","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"]}],"references":["https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908916","https://cert-portal.siemens.com/productcert/html/ssa-032379.html"],"weaknesses":["CWE-770"],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/8xxx/CVE-2025-8916.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-8916","state":"PUBLISHED","datePublished":"2025-08-13T09:31:21.181Z","dateUpdated":"2026-05-12T12:02:38.443Z","assignerShortName":"bcorg","assignerOrgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateReserved":"2025-08-13T08:52:38.480Z"},"containers":{"cna":{"title":"Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer","descriptions":[{"lang":"en","value":"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.\n\nThis 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":[{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC Java","packageName":"bcpkix","defaultStatus":"unaffected","versions":[{"version":"1.44","status":"affected","lessThanOrEqual":"1.78","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["https://github.com/bcgit/bc-java/blob/main/pkix/src/main/java/org/bouncycastle/pkix/jcajce/PKIXCertPathReviewer.java"],"repo":"https://github.com/bcgit/bc-java"},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BC Java","packageName":"bcprov","defaultStatus":"unaffected","versions":[{"version":"1.44","status":"affected","lessThanOrEqual":"1.78","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"],"programFiles":["https://github.com/bcgit/bc-java/blob/main/prov/src/main/java/org/bouncycastle/x509/PKIXCertPathReviewer.java"],"repo":"https://github.com/bcgit/bc-java"},{"vendor":"Legion of the Bouncy Castle Inc.","product":"BCPKIX FIPS","packageName":"bcpkix-fips","defaultStatus":"unaffected","versions":[{"version":"1.0.0","status":"affected","lessThanOrEqual":"1.0.7","versionType":"maven"},{"version":"2.0.0","status":"affected","lessThanOrEqual":"2.0.7","versionType":"maven"}],"collectionURL":"https://repo1.maven.org/maven2/org/bouncycastle","modules":["API"],"platforms":["All"]}],"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902025%E2%80%908916"}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"USER","Safety":"PRESENT","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"AMBER","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"LOW","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"MODERATE"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-770","description":"CWE-770 Allocation of Resources Without Limits or Throttling","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"bcorg","orgId":"91579145-5d7b-4cc5-b925-a0262ff19630","dateUpdated":"2025-09-12T11:17:08.609Z"},"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"For an attack to take place the PKIXCertPathReviewer class must be in use by the application under attack and the class must be consuming certificate paths of unknown origin without any form of other validation."}],"value":"For an attack to take place the PKIXCertPathReviewer class must be in use by the application under attack and the class must be consuming certificate paths of unknown origin without any form of other validation."}],"credits":[{"lang":"en","type":"finder","value":"Bing Shi"}],"impacts":[{"capecId":"CAPEC-130","descriptions":[{"lang":"en","value":"CAPEC-130 Excessive Allocation"}]}],"source":{"discovery":"EXTERNAL"},"workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"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."}],"value":"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."}],"x_generator":{"engine":"Vulnogram 0.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-08-13T13:13:37.616496Z","id":"CVE-2025-8916","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-08-13T13:13:54.247Z"}},{"affected":[{"vendor":"Siemens","product":"SIMATIC CN 4100","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"V5.0","versionType":"custom"}]}],"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html"}],"providerMetadata":{"shortName":"siemens-SADP","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","dateUpdated":"2026-05-12T12:02:38.443Z"},"x_adpType":"supplier"}]}}}