๐Ÿ” CVE Alert

CVE-2026-71889

UNKNOWN 0.0

PKIXCertPathReviewer does not apply X.509 name constraints to the target certificate

CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th

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

CWE CWE-295
Vendor legion of the bouncy castle inc.
Product bc-java
Published Oct 3, 2026
Stay Ahead of the Next One

Get instant alerts for legion of the bouncy castle inc. bc-java

Be the first to know when new unknown vulnerabilities affecting legion of the bouncy castle inc. bc-java are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

Affected Versions

Legion of the Bouncy Castle Inc. / BC-JAVA
0 < 1.86
Legion of the Bouncy Castle Inc. / BC-JAVA
0 < 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

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071889 github.com: https://github.com/bcgit/bc-java/commit/06dcff2f51037095de126986285c998e3455ab85

Credits

๐Ÿ” Yu Bao from the PayPal Cyber Security Team