Skip to content
Heist/ feed
Critical

MTI/A0 DHAgreement does not validate the peer's ephemeral value

Type: advisorySource: Official CVE List1 source record

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.

Announced Source revision 1
Original source ↗

CVE-2026-63569

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: cve:CVE-2026-63569

bc-csharp

Source reference: /containers/cna/affected/0/product

Affected versions
Not stated in this record
Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "repo": "https://github.com/bcgit/bc-csharp",
    "vendor": "Legion of the Bouncy Castle Inc.",
    "product": "bc-csharp",
    "versions": [
      {
        "status": "affected",
        "version": "0",
        "lessThan": "2.7.0",
        "versionType": "semver"
      }
    ],
    "packageName": "BouncyCastle.Cryptography",
    "programFiles": [
      "crypto/src/crypto/agreement/DHAgreement.cs"
    ],
    "collectionURL": "https://www.nuget.org/packages/BouncyCastle.Cryptography",
    "defaultStatus": "unaffected"
  }
]
Related CVEs
CVE-2026-63569

Source reference: /cveMetadata/cveId

Publisher severity

critical

Source reference: /containers/cna/metrics

Event
#8137 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement