{"answers":{"affected":"10 open source packages ship an affected version, including org.bouncycastle:bcpkix-fips, org.bouncycastle:bcpkix-jdk15on and org.bouncycastle:bcpkix-jdk15to18.","exploited":"There is no known exploitation of CVE-2025-8916 in the wild and no public exploit code.","fix":"Upgrade org.bouncycastle:bcpkix-fips to a fixed version for your release line: 1.0.8 or 2.0.8.","what":"CVE-2025-8916 is a medium-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. BC Java, published on 13 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-8916 and fix it if it is affected.\n\nWhat it is: CVE-2025-8916 is a medium-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. BC Java, published on 13 Aug 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-8916 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.bouncycastle:bcpkix-fips (Maven): affected from 1.0.0; fixed in 1.0.8\n- org.bouncycastle:bcpkix-fips (Maven): affected from 1.0.0; fixed in 1.0.8\n- org.bouncycastle:bcpkix-fips (Maven): affected from 2.0.0; fixed in 2.0.8\n- org.bouncycastle:bcpkix-fips (Maven): affected from 2.0.0; fixed in 2.0.8\n- org.bouncycastle:bcpkix-jdk15on (Maven): affected from 1.44; fixed in 1.79\n- org.bouncycastle:bcpkix-jdk15on (Maven): affected from 1.44; fixed in 1.79\n- org.bouncycastle:bcpkix-jdk15to18 (Maven): affected from 1.44; fixed in 1.79\n- org.bouncycastle:bcpkix-jdk15to18 (Maven): affected from 1.44; fixed in 1.79\n- org.bouncycastle:bcpkix-jdk18on (Maven): affected from 1.44; fixed in 1.79\n- org.bouncycastle:bcpkix-jdk18on (Maven): affected from 1.44; fixed in 1.79\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-8916/ (Markdown: https://insights.sbomify.com/CVE-2025-8916/index.md)","id":"CVE-2025-8916","markdown":"https://insights.sbomify.com/CVE-2025-8916/index.md","name":"CVE-2025-8916","record":{"aliases":["CLEANSTART-2026-LB17279","CLEANSTART-2026-VN09623","CLSA-2026-1770336550","CLSA-2026-1793133867","DEBIAN-CVE-2025-8916","ECHO-3e4c-cfff-062a","GHSA-4cx2-fc23-5wg6","MINI-2372-mhrr-mr2q","MINI-25h6-jrvh-v94r","MINI-396w-xqhh-fq8r","MINI-4625-wfqg-x3j3","MINI-5vmr-3h9m-q4cx","MINI-8pp8-wx59-9mwq","MINI-9m8f-v44c-7hxg","MINI-cjp7-jw85-mhf5","MINI-frr4-qfcf-xwhm","MINI-g2rf-93v8-6wjj","MINI-hqj4-x9rm-6fj5","MINI-hvrm-qjhx-6mfv","MINI-hwrg-g66m-rmhm","MINI-jwq8-mx8j-qr3p","MINI-qfcw-m8jh-5qvm","MINI-v238-86ch-rpfv","MINI-vrvg-7xxx-5963","MINI-vwpx-6c3p-fv2p","ROOT-APP-MAVEN-CVE-2025-8916","UBUNTU-CVE-2025-8916"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java cryptography library","requires_auth":"none","summary":"Attackers can cause denial of service by triggering excessive memory allocation during the processing of large name constraint structures in the Bouncy Castle library.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"bcorg","cpe":[],"cvss":{"score":6.3,"severity":"medium","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Possible DOS in processing large name constraint structures in PKIXCertPathReveiwer","id":"CVE-2025-8916","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":10,"n_references":1,"next":{"headline":"Path Traversal Leading to Remote Code Execution in allegroai/clearml","id":"CVE-2025-8917"},"packages":[{"ecosystem":"Maven","fixed":["1.0.8"],"introduced":["1.0.0"],"last_affected":[],"package":"org.bouncycastle:bcpkix-fips","purl":null,"source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.0.8"],"introduced":["1.0.0"],"last_affected":[],"package":"org.bouncycastle:bcpkix-fips","purl":"pkg:maven/org.bouncycastle/bcpkix-fips","source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["2.0.8"],"introduced":["2.0.0"],"last_affected":[],"package":"org.bouncycastle:bcpkix-fips","purl":null,"source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["2.0.8"],"introduced":["2.0.0"],"last_affected":[],"package":"org.bouncycastle:bcpkix-fips","purl":"pkg:maven/org.bouncycastle/bcpkix-fips","source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.79"],"introduced":["1.44"],"last_affected":[],"package":"org.bouncycastle:bcpkix-jdk15on","purl":null,"source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.79"],"introduced":["1.44"],"last_affected":[],"package":"org.bouncycastle:bcpkix-jdk15on","purl":"pkg:maven/org.bouncycastle/bcpkix-jdk15on","source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.79"],"introduced":["1.44"],"last_affected":[],"package":"org.bouncycastle:bcpkix-jdk15to18","purl":null,"source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.79"],"introduced":["1.44"],"last_affected":[],"package":"org.bouncycastle:bcpkix-jdk15to18","purl":"pkg:maven/org.bouncycastle/bcpkix-jdk15to18","source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.79"],"introduced":["1.44"],"last_affected":[],"package":"org.bouncycastle:bcpkix-jdk18on","purl":null,"source":"GHSA-4cx2-fc23-5wg6"},{"ecosystem":"Maven","fixed":["1.79"],"introduced":["1.44"],"last_affected":[],"package":"org.bouncycastle:bcpkix-jdk18on","purl":"pkg:maven/org.bouncycastle/bcpkix-jdk18on","source":"GHSA-4cx2-fc23-5wg6"}],"prev":{"headline":"Hardcoded TLS private key in Kiloview N30 firmware","id":"CVE-2025-8915"},"products":["BC Java","BCPKIX FIPS"],"published":"2025-08-13","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-12","vendors":["Legion of the Bouncy Castle Inc."]},"summary":"Attackers can cause denial of service by triggering excessive memory allocation during the processing of large name constraint structures in the Bouncy Castle library.","url":"https://insights.sbomify.com/CVE-2025-8916/"}