# CVE-2026-17507: MLS membership checks compare a uint32 leaf\_index as signed, admitting an out-of-range sender

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: High; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None; U: Amber
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **CWE:** CWE-195
- **Published:** 2026-10-02T07:26:34.739Z
- **Modified:** 2026-10-14T18:59:38.483Z

## Who should check

- Anyone running Legion of the Bouncy Castle Inc. BC-JAVA \>= 1.73, \< 1.86

## Description

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.

## Affected and fixed versions

- Legion of the Bouncy Castle Inc. BC-JAVA: \>= 1.73, \< 1.86 (cvelist)

## Mitigation

- Upgrade BC-JAVA to 1.86 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-17507. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-17507.md
Affected: Legion of the Bouncy Castle Inc. BC-JAVA >= 1.73, < 1.86
Fixed in: Legion of the Bouncy Castle Inc. BC-JAVA 1.86

Steps:
1. Search this machine and project for Legion of the Bouncy Castle Inc. BC-JAVA: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-17507 being exploited?

There is no confirmed exploitation: CVE-2026-17507 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-17507?

High: CVSS 8.7 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-17507?

Legion of the Bouncy Castle Inc. BC-JAVA \>= 1.73, \< 1.86.

### Is there a fix for CVE-2026-17507?

Yes. Fixed in Legion of the Bouncy Castle Inc. BC-JAVA 1.86. Upgrade BC-JAVA to 1.86 or later.

### How do I check if I'm affected by CVE-2026-17507?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9017507>
- patch: <https://github.com/bcgit/bc-java/commit/1eb83471eb01727bfdb944a5a46355cc77d55f44>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-17507>

HTML: <https://flawdb.com/CVE-2026-17507> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-17507>
