CVE-2026-63569: MTI/A0 DHAgreement does not validate the peer's ephemeral value

Published Oct 2, 2026
·
Updated

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.

Affected Software

1 affected component
Bouncy Castle bc-csharp<2.7.0

Event History

Oct 2, 2026
CVE Published
via MITRE·07:00 AM
Data Sourced
via MITRE·07:00 AM
DescriptionWeakness
Data Sourced
via NVD·07:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are affected?

Only applications that call DHAgreement directly for the MTI/A0 two-pass Diffie-Hellman protocol are affected. The issue applies to bc-csharp versions before 2.7.0.

2

What does an attacker need to exploit this?

An on-path attacker can exploit the authentication failure by supplying a crafted out-of-range or small-order ephemeral value. A malicious peer can use such a value to obtain information about the local static private key.

3

What is the impact of a successful attack?

An attacker can cause the local party to compute an agreed value already known to the attacker, defeating the key authentication intended by MTI/A0. In groups where p-1 has many small factors, a malicious peer may be able to recover the local static private key entirely.

4

How can I determine whether my application is exposed?

Review whether the application directly invokes DHAgreement and uses MTI/A0 two-pass Diffie-Hellman. If it does, determine whether the deployed bc-csharp version is earlier than 2.7.0.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203