Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessJoin MLS group as legitimate member
-
DeliveryCraft small PrivateMessage with negative/oversized leaf_index
-
ExploitBypass signed membership check in hasLeaf
-
ExecutionDrive directPath into unbounded node allocation
-
ImpactExhaust 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (bcorg).
CVSS VectorVendor: bcorg
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.
Articles & Coverage 1
Executive ViewAI
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
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
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-91235
GHSA-x7w3-c4mv-whm4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB