Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-17507

HIGH 8.7EPSS 35%

MLS membership checks compare a uint32 leaf_index as signed, admitting an out-of-range sender

Mitigation

  • Upgrade BC-JAVA to 1.86 or later.

Who should check

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:AmberOpen in CVSS calculator
Show all 12 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
EPSS
0.49% chance of exploitation in 30 days (percentile 35, 2026-11-26)
CWE
CWE-195
Published
Modified

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

Package / productAffectedFixedSource
Legion of the Bouncy Castle Inc. BC-JAVA>= 1.73, < 1.86—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors