CVE-2026-63569

Critical

Description

Improper input validation in DHAgreement.CalculateAgreement (MTI/A0 two-pass Diffie-Hellman) in Legion of the Bouncy Castle Inc. bc-csharp before 2.7.0 allows an on-path attacker to make the local party compute an agreed value the attacker already knows, defeating the key authentication MTI/A0 is meant to provide. It also allows a malicious peer to learn the local static private key modulo the small factors of p-1, and to recover it entirely in groups with many such factors. The attack uses a crafted out-of-range or small-order ephemeral value, and works because that value is raised to the static private key without the range and subgroup-membership checks applied to DH public keys. Only applications that call DHAgreement directly are affected.

SeverityCritical
CVSS9.1
Exploit probability—
ProductLegion Of The Bouncy Castle Inc. Bc-csharp
PublishedOct 2, 2026
First seenOct 2, 2026

How to fix

Update
  • Legion of the Bouncy Castle Inc. bc-csharp2.7.0 or later

Affected products

ProductAffected versionsFixed in
Legion of the Bouncy Castle Inc. bc-csharpv < 2.7.02.7.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.