# CVE-2026-71889: PKIXCertPathReviewer does not apply X.509 name constraints to the target certificate

> 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:H/VA:N/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: High; Availability impact: None; 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.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-295
- **Published:** 2026-10-03T08:31:01.178Z
- **Modified:** 2026-10-06T14:49:40.823Z

## Who should check

- Anyone running Legion of the Bouncy Castle Inc. BC-JAVA \< 1.86
- Anyone running Legion of the Bouncy Castle Inc. BC-LTS-JAVA \>= 2.73.0, \< 2.73.13
- Anyone running 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

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

## Affected and fixed versions

- Legion of the Bouncy Castle Inc. BC-JAVA: \< 1.86 (cvelist)
- Legion of the Bouncy Castle Inc. BC-JAVA: \< 1.86 (cvelist)
- Legion of the Bouncy Castle Inc. BC-LTS-JAVA: \>= 2.73.0, \< 2.73.13 (cvelist)
- 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 (cvelist)

## Mitigation

- Upgrade BC-JAVA to 1.86 or later.
- Upgrade BC-LTS-JAVA to 2.73.13 or later.
- Upgrade BC-FJA to 2.1.13 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-71889. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-71889.md
Affected: Legion of the Bouncy Castle Inc. BC-JAVA < 1.86; 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
Fixed in: Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13, Legion of the Bouncy Castle Inc. BC-FJA 1.0.13, Legion of the Bouncy Castle Inc. BC-FJA 2.0.13, Legion of the Bouncy Castle Inc. BC-FJA 2.1.13

Steps:
1. Search this machine and project for 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: 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-71889 being exploited?

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

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

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

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

Legion of the Bouncy Castle Inc. BC-JAVA \< 1.86; 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 fix for CVE-2026-71889?

Yes. Fixed in Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-JAVA 1.86, Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.13, Legion of the Bouncy Castle Inc. BC-FJA 1.0.13, Legion of the Bouncy Castle Inc. BC-FJA 2.0.13, Legion of the Bouncy Castle Inc. BC-FJA 2.1.13. Upgrade BC-JAVA to 1.86 or later. Upgrade BC-LTS-JAVA to 2.73.13 or later. Upgrade BC-FJA to 2.1.13 or later.

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

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%9071889>
- patch: <https://github.com/bcgit/bc-java/commit/06dcff2f51037095de126986285c998e3455ab85>

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

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