# CVE-2026-8798: Native entropy source retries the CPU entropy instructions without limit

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.43% (percentile 29, 2026-11-26)
- **CWE:** CWE-835
- **Aliases:** GHSA-v6w3-qrh8-qccc
- **Published:** 2026-08-08T00:50:56.956Z
- **Modified:** 2026-10-24T13:10:00.147Z

## Who should check

- Projects that depend on Maven package org.bouncycastle:bc-fips (\>= 2.1.0, \< 2.1.3)
- Anyone running Legion of the Bouncy Castle Inc. BC-FJA \>= 2.1.0, \< 2.1.3

## 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.

## Affected and fixed versions

- Maven `org.bouncycastle:bc-fips`: affected \>= 2.1.0, \< 2.1.3; fixed 2.1.3 (osv)
- Legion of the Bouncy Castle Inc. BC-FJA: \>= 2.1.0, \< 2.1.3 (cvelist)

## Mitigation

- Upgrade org.bouncycastle:bc-fips to 2.1.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-8798. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-8798.md
Affected: org.bouncycastle:bc-fips >= 2.1.0, < 2.1.3
Fixed in: 2.1.3

Steps:
1. Search this machine and project for org.bouncycastle:bc-fips (Maven), Legion of the Bouncy Castle Inc. BC-FJA: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-8798 being exploited?

There is no confirmed exploitation: CVE-2026-8798 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.43% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-8798?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-8798?

org.bouncycastle:bc-fips \>= 2.1.0, \< 2.1.3.

### Is there a fix for CVE-2026-8798?

Yes. Fixed in 2.1.3. Upgrade org.bouncycastle:bc-fips to 2.1.3 or later.

### How do I check if I'm affected by CVE-2026-8798?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%908798>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-8798>
- other: <https://github.com/bcgit/bc-java>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-8798>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-v6w3-qrh8-qccc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-8798> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-8798>
