Skip to main content

Bouncy Castle CVE-2026-58062

| EUVDEUVD-2026-52089 CRITICAL
Improper Certificate Validation (CWE-295)
2026-08-03 bcorg GHSA-j295-77c3-9frf
9.3
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain revoked cert and mismatched signed OCSP 'good' response
  2. Delivery
    Present cert to victim's TLS/PKI client
  3. Exploit
    Staple OCSP response bound to other CertID
  4. Execution
    PKIXRevocationChecker accepts non-matching response
  5. Persist
    Revocation check bypassed, connection trusted
  6. Impact
    Establish MITM / impersonation

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Exploitation requires that the relying application performs OCSP revocation checking through Bouncy Castle's PKIXRevocationChecker and consumes a stapled/supplied OCSP response (via setOcspResponses) or an AIA-fetched response (itself gated behind the ocsp.enable security property, disabled by default in BC). The attacker must present a certificate whose revocation status would otherwise be caught, together with a validly-signed OCSP response bound to a DIFFERENT CertID than the checked certificate. Limiting factors: it does not affect applications that skip OCSP or enforce CRL-only checking; the AIA network-fetch path is off unless ocsp.enable=true; and the attacker needs a legitimately-signed OCSP response (e.g. any 'good' response from the responder covering another serial). This is a control-bypass rather than a no-precondition remote compromise, so it is not exploitable against arbitrary default deployments without OCSP-stapling reliance.

Impact

Signals are mixed and warrant careful interpretation. The vendor CVSS 4.0 score is 9.3 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N) with a U:Amber caveat, implying trivially remote, unauthenticated, high-impact exploitation - but the description and source evidence show this is a revocation-enforcement bypass, not direct code execution or data theft. Real-world exploitation requires the attacker to already possess or present a certificate that would otherwise be caught as revoked, plus a relying application that uses PKIXRevocationChecker with stapled/supplied OCSP responses; this is closer to AC:H than AC:L in practice, so the 9.3 likely overstates ease of attack. No EPSS score is provided, the CVE is not in CISA KEV, and no POC beyond the vendor's regression test is referenced, so this is not evidence of active, widespread exploitation. Nonetheless the impact class is serious: silently accepting revoked certificates undermines a core TLS/PKI control and can enable man-in-the-middle interception with a revoked-but-valid-looking cert. Net assessment: high-priority patch for anyone using Bouncy Castle OCSP revocation checking, but the headline 9.3 should be read as an upper bound - the practical prerequisites make it targeted rather than mass-exploitable.

Exploit ScenarioDerived

An attacker holding a certificate that has been revoked (for example after a stolen private key) positions themselves as a TLS peer or MITM and staples a validly-signed OCSP 'good' response that actually covers a different certificate's serial (such as the CA's). A relying Java application using vulnerable Bouncy Castle OCSP revocation checking accepts the mismatched response as proof the presented certificate is not revoked, and the connection is trusted despite the revocation. No public exploit is identified beyond the vendor's regression test.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 03, 2026

Certificate revocation-check bypass in the Bouncy Castle for Java (bc-java) PKIX provider allows a validly-signed OCSP response issued for one certificate to be accepted as proof-of-status for a different certificate, because the stapled response is not bound to the CertID of the certificate actually being checked. This means a revoked end-entity certificate can pass PKIXRevocationChecker validation when a 'good' OCSP response for another serial (e.g. the CA's) is supplied, defeating revocation enforcement in TLS/PKI clients that rely on OCSP stapling. Affected releases are bc-java before 1.85, bc-lts-java before 2.73.12, and BC-FJA (FIPS) before 2.0.2 and 2.1.3; no public exploit identified at time of analysis and it is not listed in CISA KEV.

RemediationAI

Upgrade to a fixed release: bc-java 1.85 or later, bc-lts-java 2.73.12 or later, and for FIPS deployments BC-FJA 2.0.2 (2.0.X series) or 2.1.3 (2.1.X series) or later; the corresponding upstream fix is commit add5f822660f3b2c29fd824e2f4095469c42a1c7 (https://github.com/bcgit/bc-java/commit/add5f822660f3b2c29fd824e2f4095469c42a1c7) and the advisory at https://github.com/bcgit/bc-java/wiki/CVE-2026-58062. If you cannot upgrade immediately, do not rely solely on stapled OCSP for revocation: configure PKIXRevocationChecker to require CRL checking or enable CRL fallback so a non-matching OCSP response does not silently pass (this adds CRL-distribution network dependencies and latency), and avoid trusting caller-supplied stapled OCSP responses from untrusted peers. As an interim control, validate at the application layer that any OCSP response's CertID matches the certificate under test, accepting the added integration effort this requires.

Affected VersionsENISA

BC-FJA 2.1.0 <2.1.3
BC-LTS-JAVA 2.73.0 <2.73.12
BC-JAVA 1.66 <1.85
BC-FJA 2.0.0 <2.0.2

Affected Packages

euvd bc_fja fix: 2.0.2, 2.1.3
euvd bc_java fix: 1.85
euvd bc_lts_java fix: 2.73.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Bouncy Castle is one of the most widely used cryptographic libraries in the Java ecosystem, providing a JCA/JCE provider used for TLS, PKI, and certificate-path validation. The flaw lives in the OCSP handling of PKIXRevocationChecker, which processes OCSP responses supplied via setOcspResponses(...) (stapling) as well as via AIA network fetch. The root cause is CWE-295 (Improper Certificate Validation): when validating an end-entity certificate the code accepted a syntactically valid, correctly-signed OCSP response even when none of its SingleResponse entries matched the checked certificate's CertID (issuer name hash, issuer key hash, and serial number). As the added PKIXRevocationTest demonstrates, a 'good' response covering the CA's CertID stapled for the end-entity was silently treated as a successful check instead of a no-match. The fix makes an OCSP response with no matching SingleResponse fail the OCSP check so that CRL fallback runs (or validation is rejected), verified across the ONLY_END_ENTITY option and the ocsp.enable-gated AIA network path. CPE strings identify the three affected packages: legion_of_the_bouncy_castle_inc.:bc-java, :bc-lts-java, and :bc-fja.

Know when Java gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (bcorg) PRIMARY 9.3 CRITICAL
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
vuln.today AI 7.4 HIGH

Network-facing revocation bypass but needs a revoked cert plus a mismatched signed OCSP response and OCSP reliance, so AC:H; enables MITM/impersonation giving C:H/I:H, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat 7.4 HIGH

Primary rating from Vendor (bcorg).

CVSS VectorVendor: bcorg

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In Bouncy Castle for Java before 1.85, Stapled OCSP response accepted without binding to the checked certificate. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).

Executive ViewAI

Why It Matters

Bouncy Castle for Java contains a critical certificate revocation bypass (CVE-2026-58062), and no public exploit has been identified at time of analysis. The vulnerability allows revoked certificates to pass validation by reusing OCSP responses from other certificates, directly undermining certificate-based authentication in TLS and PKI systems. Organizations using Bouncy Castle must immediately apply vendor patches to restore revocation enforcement and prevent potential security breaches.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
Bouncy Castle is a de facto standard Java crypto library; OCSP-checking use is narrower
Data Quality
8 sources
Confidence: High
EUVD 🇯🇵JVN NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Module for Development Tools 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy