9.3Critical

CVE-2026-59638JSSE hostname verifier CN-fallback enabled by default despite documented opt-in

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 Published: (3 months ago)

Description

In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallback enabled by default despite documented opt-in. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).

Weakness (CWE): CWE-297

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
bouncycastle bc-java < 1.85
bouncycastle bctls-fips 1.0.0 – < 1.0.24
bouncycastle bouncy castle for java lts ≤ 2.73.11
Legion of the Bouncy Castle Inc. BC-FJA 1.0.7 – < 1.0.24, 2.0.0 – < 2.0.24, 2.1.0 – < 2.1.24
Legion of the Bouncy Castle Inc. BC-JAVA 1.61 – < 1.85
Legion of the Bouncy Castle Inc. BC-LTS-JAVA 2.73.0 – < 2.73.12

References and patches

CPE matches (NVD) (5)

  • cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:* < 1.85
  • cpe:2.3:a:bouncycastle:bctls-fips:*:*:*:*:*:*:*:* ≥ 1.0.0 < 1.0.24
  • cpe:2.3:a:bouncycastle:bctls-fips:*:*:*:*:*:*:*:* ≥ 2.0.19 < 2.0.24
  • cpe:2.3:a:bouncycastle:bctls-fips:*:*:*:*:*:*:*:* ≥ 2.1.20 < 2.1.24
  • cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:* ≤ 2.73.11