Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-8798: CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop') in Legion of the Bouncy Castle Inc. BC-FJA

0
High
Published: 08/08/2026 (08/08/2026, 00:50:56 UTC)
Source: GCVE Database
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: BC-FJA

Description

A vulnerability in Bouncy Castle for Java FIPS (BC-FJA) before version 2.1.3 causes the native entropy source on Intel platforms to retry CPU entropy instructions indefinitely if they fail persistently. This results in an uninterruptible hang in the JNI seeding routine, potentially causing denial of service for applications relying on this entropy source. The issue is fixed by bounding retry attempts and throwing an exception on exhaustion. Bouncy Castle for Java (bcprov) and earlier FIPS series 1.0.X and 2.0.X are not affected.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
2.1.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/08/2026, 14:57:28 UTC

Technical Analysis

In Bouncy Castle for Java FIPS (BC-FJA) versions prior to 2.1.3, the native entropy source on Intel platforms used unbounded retries for the RDSEED and RDRAND CPU instructions when they reported failure via the carry flag. The JNI seeding routine would spin indefinitely re-issuing these instructions if the entropy source failed persistently due to hardware faults, DRBG exhaustion, or hypervisor limitations. This caused the calling thread to hang without interruption or timeout, leading to denial of service. The fix introduced bounded retry loops (200 attempts for RDSEED and 20 for RDRAND), pauses between attempts, and throwing an exception on exhaustion after clearing any partial buffer securely with memzero. Other Bouncy Castle components without native entropy sources or older FIPS series are unaffected.

Potential Impact

Applications using the native entropy source in affected versions of Bouncy Castle for Java FIPS on Intel platforms may experience indefinite hangs during entropy generation if the CPU entropy instructions fail persistently. This results in denial of service, as the calling thread cannot be interrupted or timed out while spinning. There is no direct compromise of cryptographic material or data confidentiality indicated.

Mitigation Recommendations

Upgrade to Bouncy Castle for Java FIPS version 2.1.3 or later, where retry loops for CPU entropy instructions are bounded and failures throw exceptions instead of hanging. No other mitigation is indicated. Patch status is not explicitly confirmed in vendor advisories; users should verify upgrade availability from official Bouncy Castle sources.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-v6w3-qrh8-qccc
Osv Schema Version
1.4.0
Aliases
["CVE-2026-8798"]
Ecosystems
[]
Database Specific Severity
HIGH
Cvss Version
4.0

Threat ID: 6a774286bf8831d539b068d8

Added to database: 08/08/2026, 14:51:50 UTC

Last enriched: 08/08/2026, 14:57:28 UTC

Last updated: 08/08/2026, 14:57:28 UTC

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses