CVE-2026-12185 PUBLISHED

BKS/UBER keystore allocates from untrusted lengths before integrity check

Assigner: bcorg
Reserved: 14.06.2026 Published: 03.08.2026 Updated: 03.08.2026

In Bouncy Castle for Java before 1.85, BKS/UBER keystore allocates from untrusted lengths before integrity check. This issue also affects Bouncy Castle for Java LTS before 2.73.12.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber
CVSS Score: 7.1

Product Status

Vendor Legion of the Bouncy Castle Inc.
Product BC-JAVA
Versions Default: unaffected
  • affected from 0 to 1.85 (excl.)
Vendor Legion of the Bouncy Castle Inc.
Product BC-LTS-JAVA
Versions Default: unaffected
  • affected from 2.73.0 to 2.73.12 (excl.)

Credits

  • Alex Gaynor in collaboration with Claude and Anthropic Research reporter

References

Problem Types

  • CWE-789 Memory Allocation with Excessive Size Value CWE