Direct naar de inhoud
⚡ Kritieke cyberalerts voor jouw sector & systemen — direct in je inbox. Aanmelden →
CVE's Videos Dagbriefing

← Terug naar CVE-database

CVE-2026-71889

NONE Gepubliceerd: CWE-295

Beschrijving NL

In Bouncy Castle voor Java vóór 1.86, noch kopie van PKIXCertPathReviewer - org.bouncycastle.pkix.jcajce.PKIXCertPathReviewer noch de legacy org.bouncycastle.x509.PKIXCertPathReviewer - heeft X.509 naambeperkingen toegepast op het eindentiteitscertificaat. checkNameConstraints liep het pad met een lusgrens van index groter dan nul, wat de grens is die de CA-only stappen vereisen, maar index nul is het doelcertificaat onder de standaard CertPath-bestelling, dus de toegestane en uitgesloten subtreecontroles van RFC 5280 sec. 6.1.3 (b) en (c) liepen nooit tegen de onderwerp-DN van het blad of het onderwerp AltName. Een keten waarvan het blad een NameConstraints-extensie heeft geschonden die is opgelegd door zijn eigen uitgevende CA, heeft daarom isValidCertPath () true gerapporteerd met een lege foutenlijst, terwijl CertPathValidator.getInstance ("PKIX", "BC"), die geen code deelt met de beoordelaar, de identieke keten tegen het identieke vertrouwensanker heeft afgewezen. Een applicatie die de beoordelaar gebruikt om de vertrouwensbeslissing te nemen in plaats van voor diagnostiek naast een echte validatie, accepteerde een certificaat dat de beperkte CA nooit mocht afgeven. Beide kopieën controleren nu elk certificaat in het pad, inclusief het doel, zien af van de zelfuitgegeven vrijstelling van artikel 4.2.1.10 voor het definitieve certificaat zoals vereist in artikel 6.1.3, en slaan de stap over van artikel 6.1.4 (g) beperking-accumulatie voor het doel. Dit probleem heeft ook invloed op Bouncy Castle voor Java LTS vóór 2.73.13, die alleen het org.bouncycastle.pkix.jcajce-exemplaar van de recensent bevat. Het heeft ook invloed op Bouncy Castle voor Java FIPS (BC-FJA) vóór bcpkix-fips 1.0.13 (1.0.X-SERIE), 2.0.13 (2.0.x-serie) en 2.1.13 (2.1.x-serie).

Origineel (Engels) tonen

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

References