CVE-2026-59638: CWE-297 Improper Validation of Certificate with Host Mismatch in Legion of the Bouncy Castle Inc. BC-JAVA
CVE-2026-59638 is a critical vulnerability in Legion of the Bouncy Castle Inc.'s BC-JAVA library affecting versions before 1.85 and certain LTS and FIPS versions. The issue arises because the JSSE hostname verifier CN-fallback is enabled by default despite being documented as an opt-in feature. This improper validation of certificates with host mismatches can lead to security risks in TLS connections.
AI Analysis
Technical Summary
This vulnerability (CWE-297) in Bouncy Castle for Java involves improper validation of certificates due to the JSSE hostname verifier CN-fallback being enabled by default. This behavior contradicts the documented requirement for explicit opt-in, potentially allowing hostname mismatches to go unchecked during TLS certificate validation. Affected versions include BC-JAVA before 1.85, BC-JAVA LTS before 2.73.12, and BC-JAVA FIPS versions prior to specified patch versions in the 1.0.X, 2.0.X, and 2.1.X series. The CVSS 4.0 base score is 9.3, indicating a critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality and integrity.
Potential Impact
The vulnerability allows an attacker to exploit improper certificate validation, specifically hostname mismatches, which can undermine the security of TLS connections. This can lead to man-in-the-middle attacks where an attacker intercepts or alters communications without detection. The critical CVSS score reflects the high risk of remote exploitation without authentication or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should monitor the vendor's announcements for updates. Until a patch is available, consider disabling the CN-fallback feature if possible or implementing additional hostname verification controls outside of the vulnerable library behavior.
CVE-2026-59638: CWE-297 Improper Validation of Certificate with Host Mismatch in Legion of the Bouncy Castle Inc. BC-JAVA
Description
CVE-2026-59638 is a critical vulnerability in Legion of the Bouncy Castle Inc.'s BC-JAVA library affecting versions before 1.85 and certain LTS and FIPS versions. The issue arises because the JSSE hostname verifier CN-fallback is enabled by default despite being documented as an opt-in feature. This improper validation of certificates with host mismatches can lead to security risks in TLS connections.
CVSS v4.0
Score 9.3critical
Affected software
pkg:github/bctls-lts8onRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability (CWE-297) in Bouncy Castle for Java involves improper validation of certificates due to the JSSE hostname verifier CN-fallback being enabled by default. This behavior contradicts the documented requirement for explicit opt-in, potentially allowing hostname mismatches to go unchecked during TLS certificate validation. Affected versions include BC-JAVA before 1.85, BC-JAVA LTS before 2.73.12, and BC-JAVA FIPS versions prior to specified patch versions in the 1.0.X, 2.0.X, and 2.1.X series. The CVSS 4.0 base score is 9.3, indicating a critical severity with network attack vector, no privileges or user interaction required, and high impact on confidentiality and integrity.
Potential Impact
The vulnerability allows an attacker to exploit improper certificate validation, specifically hostname mismatches, which can undermine the security of TLS connections. This can lead to man-in-the-middle attacks where an attacker intercepts or alters communications without detection. The critical CVSS score reflects the high risk of remote exploitation without authentication or user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no official fix or patch links are provided, users should monitor the vendor's announcements for updates. Until a patch is available, consider disabling the CN-fallback feature if possible or implementing additional hostname verification controls outside of the vulnerable library behavior.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- bcorg
- Date Reserved
- 2026-07-06T06:58:29.263Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a6fe8f1bf32cb7a34b61c8d
Added to database: 08/03/2026, 01:03:45 UTC
Last enriched: 08/03/2026, 01:20:01 UTC
Last updated: 08/03/2026, 02:17:12 UTC
Views: 56
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.