CVE-2026-58062

Legion of the Bouncy Castle · BC-JAVA

Bouncy Castle for Java fails to properly bind stapled OCSP responses to the checked certificate, allowing for potential validation bypasses.

Executive summary

A critical vulnerability in Bouncy Castle for Java allows attackers to bypass certificate validation due to improper handling of stapled OCSP responses.

Vulnerability

This is a certificate validation flaw (CWE-295) where the software accepts stapled OCSP responses without verifying the binding to the certificate being checked. This vulnerability is exploitable by an unauthenticated remote attacker.

Business impact

Successful exploitation allows an attacker to present forged or revoked certificates as valid, leading to potential man-in-the-middle attacks and data interception. Given the CVSS score of 9.3, this represents a severe risk to the integrity and confidentiality of encrypted communications across affected systems.

Remediation

Immediate Action: Upgrade to the patched versions: BC-JAVA 1.85, BC-LTS-JAVA 2.73.12, or the appropriate BC-FJA version (2.0.2 or 2.1.3).

Proactive Monitoring: Review application logs for unusual TLS handshake failures or unexpected certificate validation errors.

Compensating Controls: Ensure that systems are configured to prefer alternative validation methods or use strict certificate pinning where applicable to mitigate the risk of validation bypass.

Exploitation status

Public Exploit Available: Unknown

Analyst recommendation

This vulnerability presents a critical threat to secure communication channels. Organizations must prioritize applying the vendor provided patches immediately to prevent potential interception of sensitive traffic.