{"answers":{"affected":"2 open source packages ship an affected version, including org.bouncycastle:bc-fips.","exploited":"There is no known exploitation of CVE-2026-8798 in the wild and no public exploit code.","fix":"Upgrade org.bouncycastle:bc-fips to 2.1.3 or later.","what":"CVE-2026-8798 is a high-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. BC-FJA, published on 8 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-8798 and fix it if it is affected.\n\nWhat it is: CVE-2026-8798 is a high-severity denial of service vulnerability in Legion of the Bouncy Castle Inc. BC-FJA, published on 8 Aug 2026. 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-2026-8798 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.bouncycastle:bc-fips (Maven): affected from 2.1.0; fixed in 2.1.3\n- org.bouncycastle:bc-fips (Maven): affected from 2.1.0; fixed in 2.1.3\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-2026-8798/ (Markdown: https://insights.sbomify.com/CVE-2026-8798/index.md)","id":"CVE-2026-8798","markdown":"https://insights.sbomify.com/CVE-2026-8798/index.md","name":"CVE-2026-8798","record":{"aliases":["CLEANSTART-2026-AF46359","ECHO-31b5-6793-607b","GHSA-v6w3-qrh8-qccc","MINI-3h75-p36f-9grj","MINI-hj3q-9mxq-pmcr","MINI-q2vp-vx34-j7xc","MINI-v849-2w2q-pj7q","ROOT-APP-MAVEN-CVE-2026-8798","UBUNTU-CVE-2026-8798"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Java FIPS crypto library","requires_auth":"none","summary":"An attacker can cause a denial of service by triggering infinite loops in the native entropy source when CPU instructions fail, affecting Bouncy Castle FIPS Java users.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"bcorg","cpe":[],"cvss":{"score":8.7,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber","version":"4.0"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"description":"In Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 2.1.3, the native entropy source used on Intel platforms retried the CPU entropy instructions without any bound. RDSEED and RDRAND report failure through their carry flag, and the JNI seeding routine spun re-issuing the instruction for as long as that flag stayed clear, so a persistent failure of the on-chip entropy source - whether from a hardware fault, from the underlying DRBG being exhausted by contention across many cores, or from a hypervisor that does not provide the instruction - left the calling thread looping indefinitely inside the JNI call, where it could be neither interrupted nor timed out. Any operation drawing from the native entropy source could therefore hang, denying service to the application. The retry loops are now bounded (200 attempts for RDSEED and 20 for RDRAND, twice the baselines given in Intel's Digital Random Number Generator software implementation guide), pausing between attempts and, on exhaustion, clearing any partially written buffer and throwing rather than continuing to spin. The clear is performed by an un-elidable memzero, which uses a volatile pointer and an assembly memory barrier so that a compiler cannot optimise the erase away as a dead store. Bouncy Castle for Java (bcprov) is not affected, as it has no native entropy source; the 1.0.X and 2.0.X FIPS series are not affected.","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":"Native entropy source retries the CPU entropy instructions without limit","id":"CVE-2026-8798","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Cross-Org External Token Metadata accessible to AuditUser role","id":"CVE-2026-8800"},"packages":[{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":null,"source":"GHSA-v6w3-qrh8-qccc"},{"ecosystem":"Maven","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"org.bouncycastle:bc-fips","purl":"pkg:maven/org.bouncycastle/bc-fips","source":"GHSA-v6w3-qrh8-qccc"}],"prev":{"headline":"Privilege escalation in ExpressUpdate Agent for Windows","id":"CVE-2026-8797"},"products":["BC-FJA"],"published":"2026-08-08","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-08-10","vendors":["Legion of the Bouncy Castle Inc."]},"summary":"An attacker can cause a denial of service by triggering infinite loops in the native entropy source when CPU instructions fail, affecting Bouncy Castle FIPS Java users.","url":"https://insights.sbomify.com/CVE-2026-8798/"}