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

CVE-2026-59651: BKS keystore accepts legacy version with 16-bit integrity MAC key

August 3, 2026 (updated September 16, 2026)

Affects Bouncy Castle for Java before 1.85. BcKeyStoreSpi.engineLoad() accepts keystore versions 0, 1 and 2, and for versions other than 2 derives MAC parameters from a byte length where a bit length is expected, producing a 16-bit MAC key. The version field comes from the file and the property intended to gate legacy behaviour covered only a separate alias. Anyone able to supply or modify a .bks file can select the weak branch, brute-force the key offline and produce a valid MAC over a modified store, for example injecting a rogue trusted CA.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2026-59651 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 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-326: Inadequate Encryption Strength

Source file

maven/org.bouncycastle/bcprov-jdk15to18/CVE-2026-59651.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 22 Sep 2026 12:20:05 +0000.