Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-71885 Overview
CVE-2026-71885 is an authentication bypass vulnerability [CWE-287] in the Bouncy Castle for Java cryptographic library before version 1.86. The flaw affects the Messaging Layer Security (MLS, RFC 9420) implementation. The library failed to bind an X.509 credential to a LeafNode's signature_key. An attacker can present another party's certificate as their credential while signing the LeafNode and enclosing KeyPackage with an unrelated key. The forged leaf is accepted under the victim's X.509 identity through KeyPackage.verify() and the Group leaf-validation path. Deployments that rely only on basic credentials are not affected.
Critical Impact
An unauthenticated network attacker can impersonate a victim's X.509 identity in an MLS group, evict the victim, derive the current epoch, decrypt subsequent group messages, and send messages accepted as the victim.
Affected Products
- Bouncy Castle for Java versions prior to 1.86
- MLS (RFC 9420) implementations in org.bouncycastle.mls
- Applications using X.509 credentials for MLS group messaging
Discovery Timeline
- 2026-10-03 - CVE-2026-71885 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-71885
Vulnerability Analysis
The vulnerability resides in the LeafNode.verify() method within Bouncy Castle's MLS TreeKEM implementation. RFC 9420 section 5.3 requires that the end-entity certificate's public key match the signature_key carried in a leaf for X.509 credentials. The library checked the leaf's signature against the signature_key declared in the leaf itself. However, the X.509 credential's certificate chain was stored but never parsed or validated against that key.
This gap allows an attacker to construct a LeafNode that embeds a victim's certificate as the credential while signing the leaf and the enclosing KeyPackage with an unrelated attacker-controlled key. The forged artifact passes through KeyPackage.verify() and the Group leaf-validation path under the victim's identity.
Root Cause
The root cause is a missing cryptographic binding between the X.509 credential's end-entity certificate and the leaf's declared signing key. Credential admission relied on the signature over the leaf matching signature_key, but no check enforced that signature_key equal the subject public key of the end-entity certificate in the cipher suite's signature encoding.
Attack Vector
In deployments that admit external commits without an independent credential-admission check, an unauthenticated attacker can inject a forged KeyPackage into an MLS group. Once admitted under the victim's identity, the attacker can evict the victim, since resynchronization logic compares whole credentials rather than signing keys. The attacker then derives the current epoch, decrypts subsequent group messages, and sends messages attributed to the victim.
// Patch fragment from LeafNode.java introducing the required binding
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
import org.bouncycastle.crypto.params.AsymmetricKeyParameter;
import org.bouncycastle.crypto.util.PublicKeyFactory;
import org.bouncycastle.mls.codec.Capabilities;
import org.bouncycastle.mls.codec.Certificate;
import org.bouncycastle.mls.codec.Credential;
import org.bouncycastle.mls.codec.CredentialType;
import org.bouncycastle.mls.codec.Extension;
Source: Bouncy Castle commit 77632a5
Detect Identity Attacks the Moment Authentication Fails
Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.
Stop Identity AttacksDetection Methods for CVE-2026-71885
Indicators of Compromise
- Unexpected eviction events for members in MLS groups, followed by new leaves bearing the evicted member's X.509 credential.
- KeyPackage or LeafNode artifacts where the end-entity certificate's subject public key does not match the declared signature_key.
- Epoch advances or Commit messages originating from endpoints that have not completed the application's independent credential-admission check.
Detection Strategies
- Inventory Java applications and dependencies for bcprov and bcmls artifacts at versions prior to 1.86.
- Audit MLS message logs for external_commit operations and correlate the attached credential with known enrolled device keys.
- Add a post-validation routine that re-parses stored X.509 chains in historical LeafNode records and compares the end-entity public key to signature_key.
Monitoring Recommendations
- Monitor dependency manifests (Maven, Gradle) and software bills of materials for Bouncy Castle versions below 1.86.
- Alert on repeated member eviction and rejoin cycles within short time windows across MLS deployments.
- Log and review all failures returned by the updated LeafNode.verify() once patched, since repeated rejections may indicate attempted exploitation.
How to Mitigate CVE-2026-71885
Immediate Actions Required
- Upgrade Bouncy Castle for Java to version 1.86 or later across all services that process MLS traffic.
- Enforce an independent credential-admission check for external commits that validates the X.509 chain to a trusted anchor before accepting a new leaf.
- Re-validate active MLS group membership and rotate credentials for any identity suspected of impersonation.
Patch Information
The fix is tracked in Bouncy Castle commit 77632a5 and documented in the CVE-2026-71885 project wiki. TreeKEM.LeafNode now requires the end-entity certificate's subject public key, in the cipher suite's signature encoding, to equal signature_key for an X.509 credential. Leaves with mismatched keys, an empty chain, or a certificate whose key type does not match the cipher suite are rejected. Certificate-chain and identity validation to a trust anchor remain the application's responsibility per RFC 9420 sec. 5.3.1.
Workarounds
- Where upgrading immediately is not feasible, switch MLS deployments to basic credentials, which are unaffected by this flaw.
- Disable external commits or require operator approval before admitting a new member whose credential is X.509-based.
- Implement an application-layer check that parses each incoming LeafNode's X.509 end-entity certificate and compares its subject public key to signature_key before passing it to KeyPackage.verify().
# Verify installed Bouncy Castle version in a Maven project
mvn dependency:tree | grep -i bcprov
# Expected after patching: org.bouncycastle:bcprov-jdk18on:jar:1.86
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

