Description
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.
Published: 2026-08-03
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in the BKS/UBER keystore implementation of Bouncy Castle for Java. Prior to version 1.85, an attacker can supply a carefully crafted keystore file whose length fields are not trusted before an integrity check occurs. This allows the library to allocate memory based on an untrusted length, potentially leading to buffer overflows, corruption of internal state, or application crashes. The flaw can disrupt confidentiality, integrity, or availability of the runtime environment if the tampered keystore is processed.

Affected Systems

Affected products are Bouncy Castle Java libraries. For the standard distribution, versions older than 1.85 are vulnerable. For the long‑term support branch, versions older than 2.73.12 are compromised. Systems that embed either distribution and load BKS or UBER keystore files without validating payloads are at risk.

Risk and Exploitability

The CVSS score of 7.1 reflects a high likelihood of successful exploitation in environments where an attacker can inject malicious keystore files. The EPSS score is currently unavailable, and the vulnerability is not listed in the CISA KEV catalog, suggesting it has not yet been widely exploited in the wild. Nonetheless, because the flaw can be triggered by any keystore consumer, the attack vector is likely local or remote code execution through a malformed file. Administrators should evaluate whether they process untrusted keystore inputs before applying the mitigations.

Generated by OpenCVE AI on August 3, 2026 at 09:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Bouncy Castle Java to version 1.85 or newer.
  • Upgrade the long‑term support release to 2.73.12 or newer.
  • If upgrading is not immediately possible, ensure that any keystore files are processed only after strict validation of their length and integrity before allocating memory.

Generated by OpenCVE AI on August 3, 2026 at 09:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java
Vendors & Products Legion Of The Bouncy Castle Inc.
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Mon, 03 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 03 Aug 2026 09:00:00 +0000


Mon, 03 Aug 2026 01:15:00 +0000

Type Values Removed Values Added
Description 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.
Title BKS/UBER keystore allocates from untrusted lengths before integrity check
Weaknesses CWE-789
References
Metrics cvssV4_0

{'score': 7.1, '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'}


Subscriptions

Legion Of The Bouncy Castle Inc. Bc-java Bc-lts-java
cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-08-04T01:54:27.357Z

Reserved: 2026-06-14T00:39:34.400Z

Link: CVE-2026-12185

cve-icon Vulnrichment

Updated: 2026-08-03T13:30:03.526Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-03T01:16:42.987

Modified: 2026-08-04T14:50:12.360

Link: CVE-2026-12185

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T15:52:43Z

Weaknesses
  • CWE-789

    Memory Allocation with Excessive Size Value