CVE-2026-71889PKIXCertPathReviewer does not apply X.509 name constraints to the target certificate
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).
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | bouncycastle | Fix pending | UBUNTU-CVE-2026-71889 | |
| Ubuntu 26.04 | bouncycastle | Under investigation | UBUNTU-CVE-2026-71889 | |
| Ubuntu 24.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-71889 | |
| Ubuntu 22.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-71889 | |
| Ubuntu 20.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-71889 | |
| Ubuntu 18.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-71889 | |
| Ubuntu 16.04 | bouncycastle | Fix pending | UBUNTU-CVE-2026-71889 | |
| Debian 14 | bouncycastle | Fixed | 1.86-1 | DEBIAN-CVE-2026-71889 |
| Debian 13 | bouncycastle | Fix pending | DEBIAN-CVE-2026-71889 | |
| Debian 12 | bouncycastle | Fix pending | DEBIAN-CVE-2026-71889 | |
| Red Hat Enterprise Linux 9 | jmc | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-client | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-core | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-jackson2-provider | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-resteasy-servlet-initializer | Not affected | ||
| Red Hat Enterprise Linux 9 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy | Not affected | ||
| Red Hat Enterprise Linux 8 | resteasy-javadoc | Not affected |
What the vendor says
As published in the CVE record by bcorg, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Legion of the Bouncy Castle Inc. BC-JAVA: affected: before 1.86; fixed in
1.86 - Legion of the Bouncy Castle Inc. BC-LTS-JAVA: affected: 2.73.0 to before 2.73.13; fixed in
2.73.13 - Legion of the Bouncy Castle Inc. BC-FJA: affected: 1.0.4 to before 1.0.13, 2.0.0 to before 2.0.13, 2.1.0 to before 2.1.13; fixed in
1.0.13,2.0.13,2.1.13
Vendor advisories:
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071889 (vendor-advisory)
- https://github.com/bcgit/bc-java/commit/06dcff2f51037095de126986285c998e3455ab85 (patch)
References
- https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071889
- https://github.com/bcgit/bc-java/commit/06dcff2f51037095de126986285c998e3455ab85
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.