CVE-2026-71889

Description

A flaw was found in Bouncy Castle. The certificate path reviewer (PKIXCertPathReviewer) fails to enforce name constraints on the end-entity certificate during validation. A remote attacker can exploit this issue by presenting a certificate that violates domain restrictions imposed by an issuing Certificate Authority (CA). Applications that rely on the reviewer to determine trust may incorrectly accept unauthorized certificates as valid.

Statement

A flaw was found in Bouncy Castle's PKIXCertPathReviewer, where X.509 name constraints are not evaluated against the end-entity certificate during path validation. An attacker can exploit this by presenting a certificate chain with a leaf certificate violating domain or subtree restrictions set by an issuing Certificate Authority. If an application relies on PKIXCertPathReviewer rather than standard CertPathValidator to determine trust decisions, it may accept unauthorized or spoofed certificates as valid, bypassing intended certificate-based authentication and integrity controls.

Mitigation

Do not use PKIXCertPathReviewer for trust or path validation decisions. Instead, validate certificate paths using the standard Java Cryptography Architecture via CertPathValidator.getInstance("PKIX", "BC")

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.5N/AN/A
Attack VectorNetworkN/AN/A
Attack ComplexityLowN/AN/A
Privileges RequiredNoneN/AN/A
User InteractionNoneN/AN/A
ScopeUnchangedN/AN/A
ConfidentialityNoneN/AN/A
Integrity ImpactHighN/AN/A
Availability ImpactNoneN/AN/A

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Understanding the Weakness (CWE)

Integrity,Authentication

Technical Impact: Bypass Protection Mechanism; Gain Privileges or Assume Identity

When a certificate is invalid or malicious, it might allow an attacker to spoof a trusted entity by interfering in the communication path between the host and client. The product might connect to a malicious host while believing it is a trusted host, or the product might be deceived into accepting spoofed data that appears to originate from a trusted host.

Frequently Asked Questions

Want to get errata notifications? Sign up here.