CVE-2026-63569Bouncycastle Bc-csharp
Improper Input Validation in DHAgreement.CalculateAgreement in Bc-csharp
Critical 9.1 No auth needed
Follow: this CVE · Bouncycastle · Bouncycastle Bc-csharp We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 4.0
- 9.1
- EPSS
- —
- Auth required
- No
- Published
- Oct 2, 2026
- Updated
- Oct 28, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
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
What happens
Improper input validation in DHAgreement.CalculateAgreement (MTI/A0 two-pass Diffie-Hellman) in bc-csharp before version 2.7.0 allows an on-path attacker to compromise key authentication. An attacker can make the local party compute an agreed value already known to the attacker, or learn the local static private key modulo small factors of p-1. The attack uses a crafted out-of-range or small-order ephemeral value.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 2.7.0
Update bc-csharp to version 2.7.0 or later. Only applications that call DHAgreement directly are affected.
- Apply the vendor's security update for Bc-csharp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| bouncycastle | bc-csharp | < 2.7.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch Vendor Advisory