Description
In Bouncy Castle for Java before 1.85, BCFKS keystore load honours unbounded KDF cost from untrusted file. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Published: 2026-08-03
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In Bouncy Castle for Java, before version 1.85, the BCFKS keystore loader honours the key‑derivation‑function cost value contained in an untrusted keystore file. Because the loader accepts the outlined cost from the file, loading a keystore that specifies a very high cost parameter can cause the library to perform extensive key‑derivation work. Based on the description, it is inferred that this can result in significant CPU consumption, potentially leading to a denial‑of‑service condition. This inference is not explicitly stated in the description, but follows logically from the stated behavior.

Affected Systems

The vulnerability affects Bouncy Castle for Java products, including BC-JAVA before 1.85, BC-LTS-JAVA before 2.73.12, and Bouncy Castle for Java FIPS (BC‑FJA) before bc‑fips 1.0.2.7, 2.0.2 and 2.1.3. The affected vendors are the Legion of the Bouncy Castle Inc. for their BC‑FJA, BC‑JAVA, and BC‑LTS‑JAVA libraries.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate impact. EPSS data is not available, and the vulnerability is not listed in CISA KEV. Based on the description, it is inferred that the likely attack vector would be local or remote if an application allows a user to supply a keystore file, where an attacker could provide an untrusted file containing an extreme KDF cost to exhaust resources during loading. This inference is not explicitly stated in the description. No privileged escalation is required; the exploit simply triggers excessive CPU usage when the keystore is parsed.

Generated by OpenCVE AI on August 4, 2026 at 10:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Bouncy Castle libraries to the latest released versions: BC‑JAVA 1.85+, BC‑LTS‑JAVA 2.73.12+, and BC‑FJA to the latest secure release.
  • If an immediate upgrade is not possible, restrict write/read permissions to the directory where keystore files are stored to prevent untrusted files from being loaded.
  • Configure applications to validate or reject keystore files with KDF cost values above a defined safe threshold before invoking the loader.

Generated by OpenCVE AI on August 4, 2026 at 10:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 03 Aug 2026 17: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 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-fja
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-fja
Legion Of The Bouncy Castle Inc. bc-java
Legion Of The Bouncy Castle Inc. bc-lts-java

Mon, 03 Aug 2026 06:45:00 +0000


Mon, 03 Aug 2026 02:45:00 +0000

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.85, BCFKS keystore load honours unbounded KDF cost from untrusted file. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Title BCFKS keystore load honours unbounded KDF cost from untrusted file
Weaknesses CWE-770
References
Metrics cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/U:Amber'}


Subscriptions

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

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-08-03T15:36:41.662Z

Reserved: 2026-06-28T01:21:46.335Z

Link: CVE-2026-58063

cve-icon Vulnrichment

Updated: 2026-08-03T15:36:36.835Z

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-08-03T03:16:45.773

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

Link: CVE-2026-58063

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-04T11:00:07Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling