Skip to main content
EPSS 0.2%top 89%

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 Bouncy Castle for Java where the JSSE hostname verifier CN-fallback is enabled by default despite being documented as opt-in. This affects versions before 1.85, including LTS versions before 2.73.12 and FIPS versions before specified patch releases. The flaw involves improper validation of certificates with host mismatches, categorized under CWE-297.

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

Legion of the Bouncy Castle Inc.

BC-JAVA

Affected versions
>=1.61 <1.85

Legion of the Bouncy Castle Inc.

BC-LTS-JAVA

Affected versions
>=2.73.0 <2.73.12

Legion of the Bouncy Castle Inc.

BC-FJA

Affected versions
>=1.0.7 <1.0.24>=2.0.0 <2.0.24>=2.1.0 <2.1.24
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/10/2026, 15:24:57 UTC

Technical Analysis

This vulnerability in Legion of the Bouncy Castle Inc.'s BC-JAVA library involves the JSSE hostname verifier's CN-fallback feature being enabled by default, contrary to documentation that it should be opt-in. This improper validation of certificates with host mismatches (CWE-297) can lead to security issues in TLS connections. Affected versions include all releases before 1.85, LTS versions before 2.73.12, and FIPS versions before bctls-fips 1.0.24, 2.0.24, and 2.1.24. The CVSS 4.0 score is 9.3, indicating a critical severity with network attack vector, no privileges or user interaction required, but high impact on confidentiality and integrity.

Potential Impact

The vulnerability allows improper validation of TLS certificates due to the hostname verifier CN-fallback being enabled by default. This can potentially allow attackers to bypass hostname verification, undermining the trust model of TLS connections and exposing applications using affected Bouncy Castle Java versions to man-in-the-middle or impersonation attacks. The critical CVSS score reflects the high risk of confidentiality and integrity compromise.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Users should monitor the vendor's announcements for updates and consider disabling CN-fallback hostname verification if possible as a temporary mitigation until an official fix is released.

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

Threat ID: 6a6fe8f1bf32cb7a34b61c8d

Added to database: 08/03/2026, 01:03:45 UTC

Last enriched: 08/10/2026, 15:24:57 UTC

Last updated: 09/16/2026, 22:01:36 UTC

Views: 326

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