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
VulnerabilityCVE-2026-8798cvecve-2026-8798cwe-835
Published: 08/08/2026 (08/08/2026, 00:50:56 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: BC-FJA

Description

CVE-2026-8798 is a high-severity vulnerability in Bouncy Castle for Java FIPS (BC-FJA) version 2.1.0 where the native entropy source on Intel platforms can enter an infinite loop due to unbounded retries of CPU entropy instructions RDSEED and RDRAND. This causes the calling thread to hang indefinitely, resulting in a denial of service. The issue affects only BC-FJA 2.1.0 and not other Bouncy Castle Java versions or FIPS series 1.0.X and 2.0.X.

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

org.bouncycastle/bc-fips
pkg:maven/org.bouncycastle/bc-fips
Affected versions
=2.1.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/08/2026, 01:11:07 UTC

Technical Analysis

In BC-FJA before version 2.1.3, the native entropy source on Intel platforms repeatedly retried RDSEED and RDRAND CPU instructions without any limit when these instructions failed, causing an infinite loop inside the JNI seeding routine. This loop could not be interrupted or timed out, leading to a hang and denial of service for any operation relying on the native entropy source. The root cause is that the retry loops lacked bounds and continued spinning as long as the carry flag indicated failure. The issue was fixed by bounding retries (200 attempts for RDSEED and 20 for RDRAND), adding pauses between attempts, clearing partially written buffers securely, and throwing exceptions on exhaustion instead of spinning.

Potential Impact

The vulnerability causes denial of service by hanging the calling thread indefinitely when the native entropy source fails persistently. This affects any cryptographic operation relying on native entropy on Intel platforms using BC-FJA 2.1.0. There is no indication of code execution or data compromise, but the hang can disrupt application availability.

Mitigation Recommendations

A fixed version of BC-FJA (2.1.3 or later) addresses this issue by bounding retry loops and handling failures gracefully. Users should upgrade to version 2.1.3 or later. Since no official patch link or advisory is provided, check the vendor's official resources for the fixed release. Until then, be aware that the issue exists in version 2.1.0. No other mitigations are specified.

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

Technical Details

Data Version
5.2
Assigner Short Name
bcorg
Date Reserved
2026-05-18T01:17:23.058Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a767ecdbf8831d53990b9dc

Added to database: 08/08/2026, 00:56:45 UTC

Last enriched: 08/08/2026, 01:11:07 UTC

Last updated: 08/08/2026, 01:11:07 UTC

Views: 5

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