CVE-2026-59638

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

Published Aug 3, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical impact

A flaw in Bouncy Castle for Java caused the hostname verifier to enable CN‑fallback by default, even though the library’s documentation states that this feature requires explicit opt‑in. This weakness means that a client library could accept a certificate whose Common Name does not match the hostname it is connecting to, potentially allowing a malicious server to impersonate another site. The result is a classic man‑in‑the‑middle scenario where sensitive data can be intercepted, altered, or logged by an attacker, compromising confidentiality and integrity.

Affected Systems

The vulnerability affects Legion of the Bouncy Castle Inc. products: Bouncy Castle for Java before version 1.85, Bouncy Castle for Java LTS before version 2.73.12, and Bouncy Castle for Java FIPS before bctls‑fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) or 2.1.24 (2.1.X series).

Risk and Exploitability

The CVSS score of 9.3 indicates a high‑severity vulnerability with full remote impact. EPSS data is unavailable, so the exploitation probability is not quantified, but the lack of a KEV listing does not diminish the risk to environments that rely on the affected Bouncy Castle libraries. Attackers would need to position themselves between the client and the intended server, presenting a forged certificate that would pass validation, a scenario that is both realistic and potentially catastrophic in high‑trust deployments.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Bouncy Castle Java 1.85 or newer, Bouncy Castle Java LTS 2.73.12 or newer, or Bouncy Castle FIPS to the corresponding 1.0.24, 2.0.24, or 2.1.24 release.
  • If an immediate upgrade is not possible, configure the application to use a strict hostname verifier that disables CN‑fallback until the library is updated.
  • Consult Bouncy Castle’s release notes and support channels for guidance on implementing secure deployment practices.

Generated by OpenCVE AI on August 3, 2026 at 09:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'}

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N'}

Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Bouncycastle bctls-fips
Bouncycastle bouncy Castle For Java Lts
CPEs cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bctls-fips:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*
Vendors & Products Bouncycastle
Bouncycastle bc-java
Bouncycastle bctls-fips
Bouncycastle bouncy Castle For Java Lts
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H'}

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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).
Title JSSE hostname verifier CN-fallback enabled by default despite documented opt-in
Weaknesses CWE-297
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/U:Amber'}

Weaknesses
  • CWE-297

    Improper Validation of Certificate with Host Mismatch

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Aug 3, 2026, 1:23 PM
Reserved
Jul 6, 2026, 6:58 AM
Status
Analyzed
Published
Aug 3, 2026, 1:16 AM
Modified
Aug 28, 2026, 5:29 PM