Katalog CVE

CVE-2026-71889

WysokieCVSS 8.7
Opublikowano: Przetłumaczono: NVD NIST

Streszczenie

W Bouncy Castle dla Java przed wersją 1.86, obie kopie klasy PKIXCertPathReviewer (org.bouncycastle.pkix.jcajce oraz starsza org.bouncycastle.x509) nie stosowały ograniczeń nazw X.509 do certyfikatu końcowego (liścia). Sprawdzenie checkNameConstraints pomijało indeks zero (certyfikat docelowy), przez co testy poddrzew dozwolonych i wykluczonych z RFC 5280 sek. 6.1.3 (b) i (c) nie były wykonywane dla nazwy subject DN i subjectAltName liścia. W rezultacie łańcuch z naruszonymi ograniczeniami nazw był raportowany jako prawidłowy (isValidCertPath() zwracało true z pustą listą błędów), podczas gdy CertPathValidator odrzucał ten sam łańcuch.

Ocena ryzyka

Aplikacja używająca PKIXCertPathReviewer do podejmowania decyzji o zaufaniu (zamiast tylko do diagnostyki) mogła zaakceptować certyfikat, którego wydanie przez ograniczone CA nie było dozwolone. To może prowadzić do naruszenia bezpieczeństwa, np. podszycia się pod zaufany podmiot lub użycia nieautoryzowanego certyfikatu w komunikacji TLS.

Rekomendacja

Należy natychmiast zaktualizować Bouncy Castle do wersji 1.86 lub nowszej (dla zwykłej wersji), do 2.73.13 lub nowszej (dla LTS), a w przypadku FIPS do bcpkix-fips 1.0.13, 2.0.13 lub 2.1.13 (zależnie od serii). Jeśli aktualizacja nie jest możliwa, należy używać CertPathValidator zamiast PKIXCertPathReviewer do podejmowania decyzji o zaufaniu.

Inne podatności w Bouncy Castle

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

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

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS