Skip to main content

Bouncy Castle CVE-2026-59650

| EUVDEUVD-2026-52024 CRITICAL
Improper Input Validation (CWE-20)
2026-08-03 bcorg GHSA-ghgq-7g74-28wp
Critical
Disputed · 9.3 Vendor: bcorg
View

Attack ChainAIDerived

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

  1. Access
    Establish DH peer session with static-key server
  2. Delivery
    Send crafted small-order/out-of-range value
  3. Exploit
    Server exponentiates unvalidated element
  4. Execution
    Repeat to leak exponent mod small factors
  5. Persist
    Reconstruct private key via CRT
  6. Impact
    Decrypt traffic or impersonate server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires the target to use Bouncy Castle's MTI/A0 / DHAgreement key agreement with a STATIC or REUSED DH private key - the small-subgroup confinement attack recovers the private exponent only because the same key processes many crafted peer values. The attacker must be a DH protocol peer able to submit chosen public values (the raw 'message' BigInteger and/or a DHPublicKeyParameters whose overridden getY() returns a weak element such as 1, p-1, or p) across repeated exchanges, then perform CRT reconstruction. Limiting factors: deployments using per-session EPHEMERAL DH keys are not practically exploitable (a single-use exponent is not worth recovering); exploitation is not a single request but an iterative oracle attack; and it only applies to callers of the DHAgreement code path, not to unrelated Bouncy Castle crypto. No user interaction or authentication to the DH exchange itself is required.

Impact

Signals are mixed and require judgement. The published CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N, score 9.3) rates this critical with no attack complexity or requirements, but that conflicts with the actual mechanics: a small-subgroup confinement / invalid-curve-style attack that recovers a private key requires the local key to be STATIC or REUSED and typically many crafted exchanges plus CRT reconstruction - real prerequisites the base vector's AC:L/AT:N does not reflect. I independently assess higher attack complexity (see assessed vectors). There is no CISA KEV entry and no POC referenced, so this is a serious cryptographic weakness but not evidence of active exploitation. EPSS was not provided in the input, so no exploitation-probability estimate is available. Net: high-priority for any deployment using Bouncy Castle DHAgreement with long-term/static DH keys; lower practical urgency where only ephemeral, per-session DH keys are used, since single-use keys are not meaningfully recoverable.

Exploit ScenarioDerived

A server uses Bouncy Castle's DHAgreement with a long-term (static) DH private key. A malicious client repeatedly initiates key agreements sending crafted peer values such as 1, p-1, or p, each leaking the server's private exponent modulo a small factor; the attacker then combines the residues via CRT to reconstruct the full static private key and decrypt or impersonate traffic. No POC is referenced in the available data, and exploitation requires many crafted exchanges rather than a single request.

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

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

Alert me

AnalysisAIv1 – Aug 03, 2026

Private key recovery in Bouncy Castle for Java (bc-java before 1.85, bc-lts-java before 2.73.12) affects the DH agreement code path, where a peer-supplied public value is exponentiated with the local private key without full range/subgroup validation. A malicious protocol peer can submit small-order or out-of-range Diffie-Hellman elements to mount a small-subgroup confinement attack and, when the local private key is static/reused, gradually recover it via CRT - enabling decryption and impersonation. No public exploit identified at time of analysis; the fix is a vendor-released patch and the vulnerability is not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade bc-java to 1.85 or later, and bc-lts-java to 2.73.12 or later, per the advisory at https://github.com/bcgit/bc-java/wiki/CVE-2026-59650 (fix commit daeaae9d7075d04f40812e68671ebf4c777b5148); SUSE users should apply their distribution's updated Bouncy Castle package. Until patched, the most effective compensating control is to avoid static/reused DH private keys in any code path using DHAgreement - generate a fresh ephemeral DH key pair per agreement so a recovered exponent has no lasting value (trade-off: extra key-generation cost per handshake). Where you cannot upgrade, avoid accepting DHPublicKeyParameters subclasses from untrusted sources and reject peer public values that fall outside the (1, p-1) range or lie in small subgroups before calling calculateAgreement. Prefer well-validated named DH groups or migrate to ECDH/X25519 agreements not affected by this code path.

Affected VersionsENISA

BC-LTS-JAVA 2.73.0 <2.73.12
BC-JAVA 0 <1.85

Affected Packages

euvd bc_java fix: 1.85
euvd bc_lts_java fix: 2.73.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

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

Technical ContextAI · show details

The affected component is Bouncy Castle's Diffie-Hellman key agreement (the commit touches org.bouncycastle.crypto.agreement.DHAgreement, associated in the advisory with MTI/A0-style agreement). In classic ephemeral DH both sides contribute fresh randomness, but MTI/A0 and static-DH modes reuse a long-term private key. The root cause maps to CWE-20 (Improper Input Validation): calculateAgreement raised BOTH peer-controlled inputs - the DHPublicKeyParameters 'pub' and the raw BigInteger 'message' - to the local private exponent, but validated only a subset. Because DHPublicKeyParameters.getY() is virtual, a subclass can pass construction-time checks with a dummy Y and then return an unvalidated weak value, and the raw 'message' BigInteger was never range-checked at all. Elements such as 1, p-1 (order 2), and p itself lie outside the safe (1, p-1) interval or generate a tiny subgroup, leaking the private exponent modulo small factors that CRT then reassembles. The fix re-validates both values by reconstructing them through DHPublicKeyParameters (which enforces the DH public-value range/subgroup checks) unless 'pub' is exactly the base type.

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

Sources disagree (Medium–Critical)
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 peer needs no auth (PR:N) but exploitation demands a static/reused key and many crafted exchanges plus CRT (AC:H); key recovery yields high confidentiality and integrity impact, no availability effect.

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:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 7.4 HIGH

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

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, MTI/A0 DH agreement exponentiates unvalidated peer value. This issue also affects Bouncy Castle for Java LTS before 2.73.12.

Executive ViewAI

Why It Matters

Bouncy Castle for Java (bc-java before 1.85 and bc-lts-java before 2.73.12) contains a critical vulnerability that could allow attackers to decrypt sensitive data and impersonate legitimate users in encrypted communications. Organizations using these libraries in any capacity face potential exposure of confidential information and loss of authentication integrity. While no public exploit is currently available, immediate patching is essential to mitigate this severe risk.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
High
Bouncy Castle is a widely deployed Java cryptography library, though this DH path is narrower
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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.3%
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: Moderate
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