CVE-2026-59638

Legion of the Bouncy Castle · BC-JAVA

Bouncy Castle for Java has an insecure default configuration for the JSSE hostname verifier, which incorrectly enables CN-fallback.

Executive summary

A critical security flaw in Bouncy Castle for Java improperly validates hostnames, creating an opportunity for attackers to perform man-in-the-middle attacks.

Vulnerability

This is an improper validation of certificates with host mismatch (CWE-297) caused by the JSSE hostname verifier enabling CN-fallback by default. This is exploitable by an unauthenticated remote attacker.

Business impact

The vulnerability allows attackers to impersonate legitimate services by exploiting the fallback mechanism during hostname verification. With a CVSS score of 9.3, the potential for unauthorized data access and traffic redirection poses a significant risk to organizational security posture.

Remediation

Immediate Action: Update to the latest versions: BC-JAVA 1.85, BC-LTS-JAVA 2.73.12, or the relevant BC-FJA release (1.0.24, 2.0.24, or 2.1.24).

Proactive Monitoring: Monitor network traffic for suspicious redirection patterns or certificate mismatches that may indicate an ongoing man-in-the-middle attempt.

Compensating Controls: Force explicit hostname verification settings in application code where possible to override the insecure default behavior while awaiting patching.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

The reliance on insecure defaults makes this a high-priority update. Administrators should audit their application dependencies and apply the updates as soon as they are available to prevent exploitation.