Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-59638: CWE-297 Improper Validation of Certificate with Host Mismatch in Legion of the Bouncy Castle Inc. BC-JAVA

0
Critical
VulnerabilityCVE-2026-59638cvecve-2026-59638cwe-297
Published: 08/03/2026 (08/03/2026, 00:57:31 UTC)
Source: CVE Database V5
Vendor/Project: Legion of the Bouncy Castle Inc.
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →cve
bctls
pkg:github/bctls
Affected versions
>=1.61 <1.85
GitHub Actionsmore threats →cve
bctls-lts8on
pkg:github/bctls-lts8on
Affected versions
>=2.73.0 <2.73.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/03/2026, 01:20:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses