Improper Input Validation Affecting bouncycastle.cryptography package, versions [,2.7.0)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-BOUNCYCASTLECRYPTOGRAPHY-20537027
  • published6 Oct 2026
  • disclosed2 Oct 2026

Introduced: 2 Oct 2026

NewCVE-2026-63569  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade BouncyCastle.Cryptography to version 2.7.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Input Validation through DHAgreement.CalculateAgreement in crypto/src/crypto/agreement/DHAgreement.cs. An attacker can make the local party compute a shared value the attacker already knows, or expose the static private key modulo small factors of p - 1, by supplying a crafted out-of-range or small-order ephemeral Diffie-Hellman value. This breaks MTI/A0 key authentication for applications that call DHAgreement directly, allowing an on-path attacker or malicious peer to defeat the expected secrecy of the agreement.

CVSS Base Scores

version 4.0
version 3.1