CVE-2026-58063

BCFKS keystore load honours unbounded KDF cost from untrusted file

Published Aug 3, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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).

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Bouncycastle
Bouncycastle bc-java
Bouncycastle bouncy Castle For Java Lts
Bouncycastle fips Java Api
CPEs cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:*
cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:*
Vendors & Products Bouncycastle
Bouncycastle bc-java
Bouncycastle bouncy Castle For Java Lts
Bouncycastle fips Java Api
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Type Values Removed Values Added
Metrics ssvc

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

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
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'}

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
bcorg
Published
Updated
Aug 3, 2026, 3:36 PM
Reserved
Jun 28, 2026, 1:21 AM
Status
Analyzed
Published
Aug 3, 2026, 3:16 AM
Modified
Sep 2, 2026, 2:34 PM