Skip to main content

Improper input validation in DHAgreement.CalculateAgreement (MTI/A0 two-pass Diffie-Hellman) in Legion of the Bouncy Castle Inc. (CVE-2026-63569)

0
Critical
Published: 10/02/2026 (10/02/2026, 09:31:17 UTC)
Source: GCVE Database

Description

CVE-2026-63569 is a critical vulnerability in the DHAgreement.CalculateAgreement method of the Legion of the Bouncy Castle Inc. bc-csharp library before version 2.7.0. It involves improper input validation in the MTI/A0 two-pass Diffie-Hellman key agreement, allowing an attacker to manipulate the agreed value and potentially recover the local static private key under certain conditions. This affects only applications that directly call DHAgreement.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
Scope
X
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected software

bc-csharp
pkg:nuget/bc-csharp
Affected versions
<2.7.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 18:22:27 UTC

Technical Analysis

The vulnerability arises from improper input validation in the DHAgreement.CalculateAgreement function implementing the MTI/A0 two-pass Diffie-Hellman protocol in bc-csharp versions prior to 2.7.0. An attacker positioned on the communication path can supply crafted out-of-range or small-order ephemeral values that bypass range and subgroup-membership checks. This allows the attacker to cause the local party to compute a known agreed value, defeating the key authentication guarantees of MTI/A0. Additionally, a malicious peer can learn the local static private key modulo small factors of p-1 and potentially recover it entirely in groups with many such factors. The flaw specifically affects applications that invoke DHAgreement directly, as the vulnerability exploits the lack of proper validation on ephemeral values raised to the static private key.

Potential Impact

An on-path attacker can manipulate the Diffie-Hellman key agreement to force the local party to compute a predictable shared secret, undermining the key authentication property of the MTI/A0 protocol. Furthermore, the attacker can extract partial information about the local static private key and, in some group configurations, fully recover it. This compromises the confidentiality and integrity of the cryptographic session and potentially exposes long-term private keys, leading to severe cryptographic failures.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using DHAgreement directly in bc-csharp versions before 2.7.0 or implement strict input validation to ensure ephemeral values are within valid ranges and belong to the correct subgroup. Monitor vendor communications for updates and apply official patches promptly once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-m2m9-m35w-rfxg
Osv Schema Version
1.4.0
Aliases
["CVE-2026-63569"]
Database Specific Severity
CRITICAL
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6abfeeb9a43b0b3b89e563dd

Added to database: 10/02/2026, 17:49:45 UTC

Last enriched: 10/02/2026, 18:22:27 UTC

Last updated: 10/02/2026, 19:45:56 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses