CVE-2026-71889
Last modified
CVE-2026-71889 is a high-severity vulnerability rated 8.7/10 on the CVSS scale. 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.
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).
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | 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 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-71889?
How severe is CVE-2026-71889?
How do I fix CVE-2026-71889?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-71880Interpretation of untrusted input in template engine in GBIF…7.6
- CVE-2026-71883In Bouncy Castle for Java LTS before 2.73.13, the one-shot n…8.2
- CVE-2026-71885In Bouncy Castle for Java before 1.86, the Messaging Layer S…9.2
- CVE-2026-71886In Bouncy Castle for Java before 1.86, the high-level OpenPG…8.2
- CVE-2026-71887In Bouncy Castle for Java before 1.86, the high-level OpenPG…8.2
- CVE-2026-71888In Bouncy Castle for Java before 1.86, the streaming CMS Aut…8.7
- CVE-2026-7189Insertion of sensitive information into sent data vulnerabil…7.5
- CVE-2026-71890In Bouncy Castle for Java before 1.86, validation of an MLS …8.7
- CVE-2026-71891In Bouncy Castle for Java before 1.86, BLS12_381BasicScheme.…7.1
- CVE-2026-71892In Bouncy Castle for Java before 1.86, the opt-in key-size v…6.9
- CVE-2026-71897An improper authorization check in Apache DolphinScheduler a…4.3
- CVE-2026-71898An incorrect authorization check in Apache DolphinScheduler …4.3
Are you affected by CVE-2026-71889?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
