Skip to main content

Bouncy Castle CVE-2026-17507

| EUVDEUVD-2026-91235 HIGH
Signed to Unsigned Conversion Error (CWE-195)
2026-10-02 bcorg GHSA-x7w3-c4mv-whm4
8.7
CVSS 4.0 · Vendor: bcorg
View

Attack ChainAIDerived

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

  1. Access
    Join MLS group as legitimate member
  2. Delivery
    Craft small PrivateMessage with negative/oversized leaf_index
  3. Exploit
    Bypass signed membership check in hasLeaf
  4. Execution
    Drive directPath into unbounded node allocation
  5. Impact
    Exhaust JVM heap, deny service to all members

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Signed/unsigned conversion safety
Exploitation Conditions

Exploitation requires (1) the target application to use Bouncy Castle's MLS implementation (org.bouncycastle.mls) at a version before 1.86, and (2) the attacker to already be a current member of the MLS group, since the triggering PrivateMessage/SenderData (hasLeaf path) or Remove proposal (validateRemove path) must originate from a group participant. The concrete trigger is a wire-encoded uint32 leaf_index with its top bit set, which decodes to a negative signed int and defeats the signed bounds comparison. Limiting factors: no effect on applications that do not use the MLS module; group membership is effectively a prerequisite despite the PR:N rating; and well-formed, in-range leaf indices are unaffected, so normal protocol traffic does not trigger it.

Impact

The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) scores 8.7 with impact concentrated entirely in availability (VA:H; VC:N/VI:N), correctly reflecting that this is a pure denial-of-service via JVM heap exhaustion, not a confidentiality or integrity bug. However, there is a clear conflict between the PR:N metric and the description: the advisory states the attack can be triggered only by 'any current group member' against the rest of the group, which implies the attacker must already be an authenticated MLS participant - effectively a privileged insider/compromised-member position - so PR:N likely overstates how easily an arbitrary remote attacker reaches the vulnerable path. There is no CISA KEV listing and no public exploit identified at time of analysis, so this is NOT confirmed actively exploited; the vendor's accompanying regression test is not weaponized exploit code. Net: a real and easy-to-trigger DoS for the specific population running the org.bouncycastle.mls module, but the niche affected component plus the required group-membership precondition make this a high-severity-on-paper issue whose real-world priority is bounded by how few deployments actually use Bouncy Castle's MLS implementation. EPSS was not provided and cannot be cited.

Exploit ScenarioDerived

An attacker who is already a legitimate member of an MLS group sends a single small unprotected PrivateMessage whose SenderData carries a leaf_index with the top bit set (decoding to a negative signed int). The signed membership check in GroupKeySet.SecretTree.hasLeaf accepts the out-of-range value, and LeafIndex.directPath drives NodeIndex.parent() arithmetic that never reaches the tree root, allocating an unbounded node list until the JVM exhausts its heap and denies service to every other member. No public exploit is identified, though the vendor ships a regression test demonstrating the condition.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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 – Oct 02, 2026

Heap-exhaustion denial of service in the MLS implementation of Bouncy Castle for Java (bc-java) before 1.86, triggered by a single small PrivateMessage whose SenderData carries a wire-encoded uint32 leaf_index with its top bit set. Because that value is held in a signed int, it decodes as negative and passes the signed bounds checks in GroupKeySet.SecretTree.hasLeaf and Group.validateRemove, letting a sender outside the tree reach LeafIndex.directPath()/NodeIndex.parent() arithmetic that never terminates at the tree root and grows a node list until the JVM runs out of heap. Impact is confined to availability (CVSS 4.0 8.7 with VA:H and no confidentiality or integrity effect); group membership is a practical prerequisite since the triggering MLS message or Remove proposal must originate from a current group participant, and applications that do not use org.bouncycastle.mls are unaffected. No public exploit code identified at time of analysis and the issue is not in CISA KEV; the vendor has released a fix in Bouncy Castle 1.86.

RemediationAI

Upgrade to Bouncy Castle for Java 1.86 or later, which is the vendor-released fix: the corrective commit (1eb83471eb01727bfdb944a5a46355cc77d55f44) rewrites both bounds checks in GroupKeySet.SecretTree.hasLeaf and Group.validateRemove to use Integer.toUnsignedLong, so out-of-range leaf indices are rejected however they are encoded, and the accompanying GroupKeySetTest regression suite verifies that negative and oversized indices are no longer treated as leaves. If an immediate upgrade is impossible, the most effective compensating control is to stop using the org.bouncycastle.mls module, or at least stop feeding it attacker-influenced MLS traffic - an application that never calls unprotect on PrivateMessages or never processes Remove proposals from other members does not reach the vulnerable comparisons, at the cost of losing MLS group messaging functionality entirely. Where MLS must stay enabled, restrict the group to fully trusted, vetted participants, since the practical prerequisite is that the attacker is already a current member; this trades away the open-group membership model that typically motivates using MLS. Because the trigger is a single small message, size caps or rate limiting on inbound MLS datagrams are ineffective, but running MLS processing in a dedicated JVM with a constrained -Xmx and a supervisor that restarts on OutOfMemoryError can contain the blast radius so that a malicious member degrades only that instance rather than co-hosted services - at the cost of repeated crashes and loss of in-flight state. Monitor the 1.86+ upgrade path against the vendor wiki advisory for any further guidance, and validate the fix by asserting that a leaf_index of -1 or Integer.MIN_VALUE is no longer accepted as a member of the group.

Affected VersionsENISA

BC-JAVA 1.73 <1.86

Affected Packages

euvd bc_java fix: 1.86

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package 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 the Java MLS (Messaging Layer Security) module, org.bouncycastle.mls, which implements RFC 9420. RFC 9420 encodes leaf_index as a uint32 on the wire, and that full range is legitimate rather than malformed input - the MLS interoperability test vectors deliberately round-trip it - but Bouncy Castle stores the value in a signed Java int. When the top bit is set the decoded int is negative, and any negative int widens to a negative long that is trivially less than the small, positive leaf count of the tree. This is CWE-195, a signed-to-unsigned comparison error: GroupKeySet.SecretTree.hasLeaf used 'sender.value() < treeSize.leafCount()' and Group.validateRemove used the same pattern for remove.removed.value(), so an out-of-range sender was accepted as a group member. In the hasLeaf path, the SenderData of an unprotected PrivateMessage then drives LeafIndex.directPath() through NodeIndex.parent() arithmetic that cycles without reaching the tree root, producing an unbounded result list and ultimately JVM heap exhaustion. The fix in commit 1eb83471eb01727bfdb944a5a46355cc77d55f44 replaces both comparisons with Integer.toUnsignedLong(...) before the comparison, rejecting out-of-range senders regardless of encoding while leaving well-formed leaf indices untouched; a regression test (GroupKeySetTest.testOutOfRangeSenderIsNotALeaf) was added asserting that hasLeaf(new LeafIndex(-1)), hasLeaf(new LeafIndex(Integer.MIN_VALUE)) and hasLeaf(new LeafIndex(100)) all return false for a four-leaf tree. Note that the supplied intelligence tags label this 'Information Disclosure', which is inconsistent with the actual, purely availability-oriented impact and with the vendor's own release notes describing a denial of service.

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 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber
vuln.today AI 6.5 MEDIUM

Attacker must be an existing group member sending one network message (AV:N/AC:L/PR:L/UI:N); impact is heap-exhaustion DoS only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 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
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In Bouncy Castle for Java before 1.86, the MLS implementation (org.bouncycastle.mls) holds RFC 9420's uint32 leaf_index in a signed int, so a wire value with the top bit set decodes to a negative number. That is a legitimate encoding rather than malformed input, and it must still decode, since the MLS interop test vectors round-trip the full range. GroupKeySet.SecretTree.hasLeaf and Group.validateRemove compared the decoded value directly against the tree's leaf count, and a signed comparison treats any negative int as less than a positive bound, so an out-of-range sender passed the membership check. In the hasLeaf case the SenderData of an unprotected PrivateMessage could then drive LeafIndex.directPath through NodeIndex.parent() arithmetic that never reaches the tree root, growing the resulting node list without bound until the JVM exhausted its heap. A single small message from any current group member could therefore deny service to every other member of the group. Both comparisons now interpret the value as unsigned via Integer.toUnsignedLong, rejecting an out-of-range sender however it was encoded; well-formed leaf indices are unaffected.

Executive ViewAI

Why It Matters

Bouncy Castle for Java's MLS group-messaging component, in versions before 1.86, can be forced into heap exhaustion by a single small malformed message, crashing the JVM and taking down any platform that depends on it for group messaging. Because the trigger must come from an existing group member, the risk concentrates in multi-party messaging, collaboration, and secure-group applications rather than in the broader Bouncy Castle cryptography surface. Confidentiality and integrity are unaffected; the exposure is purely availability, and a vendor fix is already available, so leadership attention should focus on how quickly affected services can be moved to 1.86.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
Low
bc-java is ubiquitous, but the vulnerable org.bouncycastle.mls module is rarely deployed
Data Quality
7 sources
Confidence: High
EUVD 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 HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

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

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