Link Search Menu Expand Document

CVE-2026-58062 (Bouncy Castle)

Bouncy Castle Stapled OCSP Response Vulnerability

Last Updated: 19th November 2026


   
Severity Critical (CVSS 4.0: 9.3)
Status Not exploitable in EzSign
Affected products None. EzSign versions before 4.6.0 include the affected library but do not use the vulnerable code


Summary

CVE-2026-58062 is a certificate validation flaw in the Bouncy Castle for Java cryptography library

When Bouncy Castle’s built-in PKIX revocation checker is supplied with a stapled OCSP response (an OCSP response provided alongside the certificate, rather than fetched from the OCSP responder), it does not check that the response actually relates to the certificate being checked. An attacker could therefore supply a valid “good” OCSP response for a different certificate, causing a revoked certificate to be accepted

The following versions of Bouncy Castle are affected:

  • Bouncy Castle for Java before 1.85
  • Bouncy Castle for Java LTS before 2.73.12
  • Bouncy Castle for Java FIPS before 2.0.2 (2.0.x) and 2.1.3 (2.1.x)


Am I Vulnerable

No. Versions of EzSign before 4.6.0 include an affected version of Bouncy Castle, but the vulnerability cannot be exploited

The vulnerability is in Bouncy Castle’s built-in OCSP checker, and only when it is supplied with stapled responses. EzSign does not use this checker. EzSign performs its own OCSP validation, which fetches responses directly from the OCSP responder and rejects any response that does not match the certificate being checked

EzSign 4.6.0 includes Bouncy Castle version 1.86, which is not affected


What Should We Do

No action is required

If you would like to remove the affected library completely (e.g. so it is no longer reported by vulnerability scanners), upgrade to EzSign 4.6.0

When upgrading, replace the whole EzSignServer/lib folder with the new one, rather than copying the new jars into the existing folder. See Upgrading to EzSign 4.6 for more details


References


Revision History

Date Change
19th November 2026 Initial advisory


More Information

Contact Krestfield Support for more information