Description
In Bouncy Castle for Java before 1.86, the raw JCA provider's legacy PBES1 (PKCS#5 scheme 1) and PKCS#12 PBE families ran their password-based key derivation with an iteration count taken from untrusted input without bounding it, so a small input could dictate an arbitrary amount of work before anything could be verified. The AlgorithmParameters implementations (PKCS12PBE and its object identifier aliases, and PBKDF1) accepted any count from an encoded PKCS12PBEParams or PBEParameter, narrowing a value beyond the int range with intValue(), and every Cipher, Mac and SecretKeyFactory in these families derived with whatever count it was given, including one decoded by another provider's AlgorithmParameters, as when javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypts a PKCS#12 PBE-protected private key with BC. Both the parameter parse and the derivations now reject a negative or over-limit count under the org.bouncycastle.pbe.max_iteration_count property (default 10,000,000) that already bounded PBKDF2 (CVE-2026-17508), and the parse rejects a count beyond the int range rather than narrowing it. This issue also affects Bouncy Castle for Java LTS before 2.73.13.
Published: 2026-10-03
Score: 5.3 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service through unbounded key derivation
Action: Apply Patch
AI Analysis

Impact

In Bouncy Castle for Java versions prior to 1.86, the legacy PBES1 and PKCS#12 PBE algorithms accepted an iterator count directly from untrusted input without bounding it; this allowed an attacker to set the count to any integer value, potentially triggering an arbitrarily large number of cryptographic operations that drain CPU time and memory before authentication succeeds, thus resulting in denial of service. The flaw originates from a lack of bounds checking in the derived key generation step (CWE-770).

Affected Systems

The vulnerability affects the raw Java Cryptography Architecture provider supplied by Bouncy Castle Inc., specifically the BC-JAVA library for all versions before 1.86 and the BC-LTS-JAVA library for all LTS versions before 2.73.13.

Risk and Exploitability

The vulnerability has a CVSS score of 5.3 and is not listed in the CISA KEV catalog; the EPSS score is not available, indicating a currently unclear exploitation probability. The attack vector is to supply malicious PBES1 or PKCS#12 PBE parameters with an inflated iteration count, causing the target application to perform excessive work during key derivation, which can be executed remotely if the application accepts externally supplied encrypted keys. Because the flaw is a purely resource exhaustion issue, mitigating the risk largely depends on bounding the iteration count or patching the library.

Generated by OpenCVE AI on October 3, 2026 at 09:24 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Bouncy Castle library to version 1.86 or later, and upgrade the LTS library to version 2.73.13 or later.
  • If an upgrade is not immediately viable, configure the system property org.bouncycastle.pbe.max_iteration_count to a lower value (such as 1,000,000) to limit maximum iteration counts.
  • Validate or reject any externally supplied PBES1 or PKCS#12 PBE parameters that attempt to use unusually high iteration counts before processing them.
  • Consider disabling legacy PBES1 and PKCS#12 PBE usage in the application if they are not required, thereby eliminating the vector entirely.

Generated by OpenCVE AI on October 3, 2026 at 09:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 03 Oct 2026 09:00:00 +0000


Sat, 03 Oct 2026 08:30:00 +0000

Type Values Removed Values Added
Description In Bouncy Castle for Java before 1.86, the raw JCA provider's legacy PBES1 (PKCS#5 scheme 1) and PKCS#12 PBE families ran their password-based key derivation with an iteration count taken from untrusted input without bounding it, so a small input could dictate an arbitrary amount of work before anything could be verified. The AlgorithmParameters implementations (PKCS12PBE and its object identifier aliases, and PBKDF1) accepted any count from an encoded PKCS12PBEParams or PBEParameter, narrowing a value beyond the int range with intValue(), and every Cipher, Mac and SecretKeyFactory in these families derived with whatever count it was given, including one decoded by another provider's AlgorithmParameters, as when javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypts a PKCS#12 PBE-protected private key with BC. Both the parameter parse and the derivations now reject a negative or over-limit count under the org.bouncycastle.pbe.max_iteration_count property (default 10,000,000) that already bounded PBKDF2 (CVE-2026-17508), and the parse rejects a count beyond the int range rather than narrowing it. This issue also affects Bouncy Castle for Java LTS before 2.73.13.
Title Legacy PBES1 and PKCS#12 PBE iteration count honoured unbounded in the raw JCA provider
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

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: bcorg

Published:

Updated: 2026-10-03T08:53:44.034Z

Reserved: 2026-09-25T08:41:02.479Z

Link: CVE-2026-97873

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-03T09:17:06.280

Modified: 2026-10-03T09:17:06.280

Link: CVE-2026-97873

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-03T09:30:19Z

Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling