Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.bouncycastle/bcprov-jdk14
  4. ›
  5. CVE-2026-59650

CVE-2026-59650: MTI/A0 DH agreement exponentiates unvalidated peer value

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java before 1.85. DHAgreement, implementing the MTI/A0 two-pass variant, raises the peer-supplied message value to the local static private key without any range or subgroup-membership check, unlike the validated public-key argument. A malicious peer that repeatedly sends small-order elements learns the private key modulo a small prime from each exchange and recovers it in full by combining them. DHBasicAgreement is unaffected because its only input is validated.

References

  • github.com/bcgit/bc-java/commit/daeaae9d7075d04f40812e68671ebf4c777b5148
  • github.com/bcgit/bc-java/wiki/CVE-2026-59650
  • nvd.nist.gov/vuln/detail/CVE-2026-59650

Code Behaviors & Features

Detect and mitigate CVE-2026-59650 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.85.0

Fixed versions

  • 1.85.0

Solution

Upgrade to version 1.85.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

maven/org.bouncycastle/bcprov-jdk14/CVE-2026-59650.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:33 +0000.