CVE-2026-71889Legion OF The Bouncy Castle Inc BC-JAVA improper certificate validation
CVSS score
8.7
High
CVSS 4.0 from 91579145-5d7b-4cc5-b925-a0262ff19630
Exploit probability (EPSS)
0.17%
0.17% chance of exploitation in the next 30 days, higher than 5.93% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official description
In Bouncy Castle for Java before 1.86, neither copy of PKIXCertPathReviewer - org.bouncycastle.pkix.jcajce.PKIXCertPathReviewer nor the legacy org.bouncycastle.x509.PKIXCertPathReviewer - applied X.509 name constraints to the end-entity certificate. checkNameConstraints walked the path with a loop bound of index greater than zero, which is the bound the CA-only steps require, but index zero is the target certificate under the standard CertPath ordering, so the permitted and excluded subtree checks of RFC 5280 sec. 6.1.3 (b) and (c) never ran against the leaf's subject DN or its subjectAltName. A chain whose leaf violated a NameConstraints extension imposed by its own issuing CA therefore reported isValidCertPath() true with an empty error list, while CertPathValidator.getInstance("PKIX", "BC"), which shares no code with the reviewer, rejected the identical chain against the identical trust anchor. An application using the reviewer to make the trust decision rather than for diagnostics alongside a real validation accepted a certificate the constrained CA was never authorised to issue. Both copies now check every certificate in the path including the target, waive the sec. 4.2.1.10 self-issued exemption for the final certificate as sec. 6.1.3 requires, and skip the sec. 6.1.4 (g) constraint-accumulation step for the target. This issue also affects Bouncy Castle for Java LTS before 2.73.13, which carries only the org.bouncycastle.pkix.jcajce copy of the reviewer. It also affects Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 1.0.13 (1.0.X series), 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).
Source: NVD · CNA: 91579145-5d7b-4cc5-b925-a0262ff19630
How to fix it, step by step
Check whether you're affected
Find every system running Legion of the Bouncy Castle Inc. BC-JAVA, Legion of the Bouncy Castle Inc. BC-LTS-JAVA, Legion of the Bouncy Castle Inc. BC-FJA and compare its version with the affected versions.
Update to a fixed version
- Update BC-FJA to 1.0.13, 2.0.13, 2.1.13 or later, on the branch you run.
- Update BC-JAVA to 1.86 or later.
- Update BC-LTS-JAVA to 2.73.13 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber
Affected products
| Affected products | Versions |
|---|---|
| Legion of the Bouncy Castle Inc. BC-JAVA | < 1.86 |
| Legion of the Bouncy Castle Inc. BC-LTS-JAVA | ≥ 2.73.0, < 2.73.13 |
| Legion of the Bouncy Castle Inc. BC-FJA | ≥ 1.0.4, < 1.0.13 · ≥ 2.0.0, < 2.0.13 · ≥ 2.1.0, < 2.1.13 |
Weakness
- CWE-295 improper certificate validation
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-71889 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-71889?
CVE-2026-71889 has a CVSS 4.0 base score of 8.7 (high).
Which versions are affected?
Legion OF The Bouncy Castle Inc BC-JAVA (< 1.86), Legion OF The Bouncy Castle Inc BC-LTS-JAVA (≥ 2.73.0, < 2.73.13), Legion OF The Bouncy Castle Inc BC-FJA (≥ 1.0.4, < 1.0.13; ≥ 2.0.0, < 2.0.13; ≥ 2.1.0, < 2.1.13)
Is there a patch for CVE-2026-71889?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.